Corgi BankDocumentation
OpenAPI

Create an authorization

POST/authorizations

An authorization may carry network_token (token_reference, token_requestor_id, assurance_method, cryptogram_result) when the network detokenized it: the token must map to this card and requestor, be active and unexpired, the channel and merchant within its domain, a wallet token's cryptogram valid, its wallet consent enabled and its own controls met, or the authorization is declined with the token reason (05, 54, 57, 61, 62 or 63). Which token was used and what the check found is retained.

Headers

Idempotency-KeystringOptional

Send on every write that creates or changes money or state; a replay with the same key returns the original result with 200.

Body parameters

amountintegerRequired
channelstringRequired
countrystringRequired
currency_codestringRequired
fleet_receiptobject or nullOptional
2 child attributes
payloadobjectRequired
23 child attributes
authority_idstringRequired
authority_sha256stringRequired
authorization_idstringOptional

Example auth_2tVh8nqLxq4GbDe0K1F6S9zRcWm

authorization_network_refstringOptional
card_idstringRequired

Example card_2tVh8nqLxq4GbDe0K1F6S9zRcWm

currency_codestringRequired
driver_referencestringRequired
effective_atstring · date-timeRequired
issued_atstring · date-timeRequired
key_idstringRequired
kindstringRequired

Authorize or presentment

linesarray of objectsOptional
6 child attributes
product_codestringRequired
quantity_milliintegerRequired
referencestringRequired
total_amountintegerRequired
unitstringRequired
unit_price_milli_minorintegerRequired
networkstringRequired
original_receipt_sha256stringOptional
product_code_systemstringOptional
product_code_versionstringOptional
receipt_referencestringRequired
source_evidenceobjectRequired
2 child attributes
referencestringRequired
sha256stringRequired
total_amountintegerRequired
transaction_sha256stringOptional
vehicle_referencestringRequired
verificationstringRequired

Driver_vehicle_verified or cleared_fuel_purchase

versionstringRequired
signaturestringRequired
mccstringRequired
merchant_idstringOptional
merchant_locationstringOptional
merchant_namestringRequired
merchant_postal_codestringOptional

The merchant's postal code, when the network carries it

merchant_regionstringOptional

ISO 3166-2 subdivision, full ("UA-43") or the part after the country

network_refstringRequired
network_tokenobject or nullOptional

Token data the network carries after detokenizing

4 child attributes
assurance_methodstringOptional

As the network carries it; retained as evidence

cryptogram_resultstringRequired

Valid, invalid or not_present, as the token service verified it

token_referencestringRequired
token_requestor_idstringRequired
pan_tokenstringRequired
partial_approval_allowedbooleanOptional
three_dsobject or nullOptional

An e-commerce purchase's 3-D Secure authentication value and ECI

2 child attributes
authentication_valuestringRequired
ecistringRequired
wallet_receiptobject or nullOptional
2 child attributes
payloadobjectRequired

Payload is the versioned, domain-separated processor receipt. SigningBytes is normative: typed JSON in this field order with the timestamp normalized to UTC. Activate requires issuer_identity_verified; authorize requires cryptogram_verified.

15 child attributes
actionstringRequired
device_sha256stringRequired
event_referencestringRequired
evidence_referencestringRequired
evidence_sha256stringRequired
issued_atstring · date-timeRequired
key_idstringRequired
networkstringRequired
network_token_referencestringRequired
requestor_idstringRequired
sequenceintegerRequired
token_idstringRequired
transaction_sha256stringOptional
verificationstringOptional
versionstringRequired
signaturestringRequired

Standard base64 Ed25519 signature

Returns

200 OK

approved_amountintegerOptional

A partial approval (response 10) or an increment

authorization_idstringRequired

Example auth_2tVh8nqLxq4GbDe0K1F6S9zRcWm

decisionstringRequired
reasonstringRequired
replayedbooleanRequired
response_codestringRequired

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close