Skip to navigation

APA Checkout

Initiates the checkout for an APA Payment

Authentication

x-coinflow-auth-session-keystring
OR
x-coinflow-auth-walletstring
x-coinflow-auth-blockchainstring
OR
x-coinflow-auth-user-idstring

Path parameters

merchantIdstringRequired

Request

This endpoint expects an object.
subtotalobjectRequired
credentialTypeenumRequired
Exclude from T those types that are assignable to U
credentialValuestringRequired

Lowercased email or E.164-formatted phone number, matching credentialType.

userLocationobjectOptional

End-user geographic coordinates captured at the moment of the withdrawal request. Consumed by BlockingRuleMethod.GEOLOCATION enforcement.

Replay-of-different-coords bypass is prevented server-side: the first resolved {country, state} for a given (merchant, user) pair is pinned in Redis, and subsequent requests are evaluated against that pinned value regardless of the lat/lng they submit.

customPayInFeeslist of objectsOptional
fixedFeeobjectOptional
customerInfoobjectOptional
webhookInfoobjectOptional
feePercentagedoubleOptional0-100

If this purchase is for a seller/submerchant where the marketplace takes a fee, this is the % fee which is taken from the subtotal amount.

jwtTokenstringOptional
This is a token encoding the parameters for the request. Allows purchase parameters to be verified to prevent manipulation when the checkout page is presented to the user.
overrideChargebackProtectionDecisionbooleanOptional
chargebackProtectionAccountTypeenumOptional
Allowed values:
doNotReviewChargebackProtectionbooleanOptional
settlementTypeenumOptional
Allowed values:
customerUsdcTransferDataV2objectOptional

V2 of CustomerUsdcTransferData — replaces the (v, r, s) triple with a single signature bytes string, matching USDC FiatTokenV2_2’s bytes-overload transferWithAuthorization. All other fields unchanged from V1.

rentobjectOptional
transactionDataobjectOptional

(EVM only) if you want to execute an EVM transaction on a successful purchase, you can pass a transaction request here.

Gas fees for the transaction will be automatically calculated and added to the total charged to the customer. Optionally the merchant can opt to pay for these gas fees.

destinationAuthKeystringOptional
If utilizing USDC settlement to addresses other than your main merchant settlement address. Utilize this destinationAuthKey which is a JWT encoded with the information for which address to send the USDC to.
emailstringOptional

Email for new customers paying with a phone APA credential. Not needed when credentialType is EMAIL (credentialValue is used as the email).

Response

Ok
paymentIdstring

Errors

423
Locked Error
451
Unavailable for Legal Reasons Error