Skip to main content
POST
Resolve a payment attempt

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 resolve.

Body

application/json
outcome
enum<string>
required

The outcome of the payment attempt, as processed outside of Primer.

Available options:
SUCCEEDED,
FAILED
vaultPaymentMethod
boolean
default:false

Vault the card used for the attempt instead of invalidating it. Requires outcome to be SUCCEEDED to be set.

Response

Successful Response

paymentAttemptId
string<uuid>
required

ID of the payment attempt the outcome was reported for.

vaultedPaymentMethod
MerchantPaymentMethodTokenAPIResponse · object

The vaulted card, present when vaultPaymentMethod was true on the request.

Example: