Skip to main content
POST
/
payment-attempts
/
{id}
/
approve
Approve a payment attempt
curl --request POST \
  --url https://api.sandbox.primer.io/payment-attempts/{id}/approve \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-VERSION: <x-api-version>'
{
  "paymentAttemptId": "6c5d3a30-3c2e-4f55-9d8e-5b3d5e3a5c7f",
  "paymentId": "IHQlakKC"
}

Authorizations

X-API-KEY
string
header
required

Headers

X-API-VERSION
string
required

Specifies the version of the API to use. This must be set to 2.4.

Example:

"2.4"

Path Parameters

id
string<uuid>
required

ID of the payment attempt to approve.

Response

Successful Response

paymentAttemptId
string<uuid>
required

ID of the approved payment attempt.

paymentId
string
required

ID of the payment created on Primer's side as a result of the approval. Use this to look up the payment via the Payments API.