using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.Transactions.CancelAsync(transactionId: "7099948d-7286-47e4-aad8-b68f7eb44591");
// handle response{
"status": "succeeded",
"code": "service_error",
"raw_response_code": "E104",
"raw_response_description": "Internal error",
"transaction": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reconciliation_id": "<string>",
"merchant_account_id": "<string>",
"currency": "<string>",
"amount": 123,
"status": "processing",
"authorized_amount": 123,
"captured_amount": 123,
"refunded_amount": 123,
"settled_amount": 123,
"settled": true,
"intent": "authorize",
"gift_card_redemptions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "created",
"amount": 123,
"refunded_amount": 123,
"gift_card": {
"bin": "<string>",
"sub_bin": "<string>",
"last4": "<string>",
"type": "gift-card",
"id": "356d56e5-fe16-42ae-97ee-8d55d846ae2e"
},
"type": "gift-card-redemption",
"gift_card_service_redemption_id": "xYqd43gySMtori",
"error_code": "expired_card",
"raw_error_code": "10001",
"raw_error_message": "Card expired"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"disputed": true,
"payment_source": "ecommerce",
"merchant_initiated": true,
"is_subsequent_payment": true,
"intent_outcome": "pending",
"multi_tender": true,
"account_funding_transaction": true,
"type": "transaction",
"settled_currency": "USD",
"country": "US",
"external_identifier": "transaction-12345",
"payment_method": {
"method": "abitab",
"type": "payment-method",
"approval_url": "https://gr4vy.app/redirect/12345",
"country": "US",
"currency": "USD",
"details": {
"bin": "<string>",
"card_type": "credit",
"card_issuer_name": "<string>"
},
"expiration_date": "12/30",
"fingerprint": "20eb353620155d2b5fc864cc46a73ea77cb92c725238650839da1813fa987a17",
"label": "1234",
"last_replaced_at": "2013-07-16T19:23:00.000+00:00",
"mode": "card",
"scheme": "visa",
"id": "852b951c-d7ea-4c98-b09e-4a1c9e97c077",
"approval_target": "any",
"external_identifier": "card-12345",
"payment_account_reference": "V0010014629724763377327521982"
},
"method": "card",
"instrument_type": "pan",
"error_code": "missing_redirect_url",
"payment_service": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_service_definition_id": "<string>",
"method": "abitab",
"display_name": "<string>",
"type": "payment-service"
},
"pending_review": false,
"buyer": {
"type": "buyer",
"id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
"display_name": "John Doe",
"external_identifier": "buyer-12345",
"billing_details": {
"first_name": "John",
"last_name": "Doe",
"email_address": "[email protected]",
"phone_number": "+1234567890",
"address": {
"city": "San Jose",
"country": "US",
"postal_code": "94560",
"state": "California",
"state_code": "US-CA",
"house_number_or_name": "10",
"line1": "Stafford Appartments",
"line2": "29th Street",
"organization": "Gr4vy"
},
"tax_id": {
"value": "<string>",
"kind": "ae.trn"
}
},
"account_number": "<string>"
},
"raw_response_code": "E104",
"raw_response_description": "Missing redirect URL",
"shipping_details": {
"first_name": "John",
"last_name": "Doe",
"email_address": "[email protected]",
"phone_number": "+1234567890",
"address": {
"city": "San Jose",
"country": "US",
"postal_code": "94560",
"state": "California",
"state_code": "US-CA",
"house_number_or_name": "10",
"line1": "Stafford Appartments",
"line2": "29th Street",
"organization": "Gr4vy"
},
"id": "bf8c36ad-02d9-4904-b0f9-a230b149e341",
"buyer_id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
"type": "shipping-details"
},
"checkout_session_id": "4137b1cf-39ac-42a8-bad6-1c680d5dab6b",
"gift_card_service": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"gift_card_service_definition_id": "mock-gift-card",
"display_name": "<string>",
"type": "gift-card-service"
},
"airline": {
"booking_code": "X36Q9C",
"is_cardholder_traveling": true,
"issued_address": "123 Broadway, New York",
"issued_at": "2013-07-16T19:23:00.000+00:00",
"issuing_carrier_code": "649",
"issuing_carrier_name": "Air Transat A.T. Inc",
"issuing_iata_designator": "TS",
"issuing_icao_code": "TSC",
"legs": [
{
"arrival_airport": "LAX",
"arrival_at": "2013-07-16T19:23:00.000+00:00",
"arrival_city": "Los Angeles",
"arrival_country": "US",
"carrier_code": "649",
"carrier_name": "Air Transat A.T. Inc",
"iata_designator": "TS",
"icao_code": "TSC",
"coupon_number": "15885566",
"departure_airport": "LHR",
"departure_at": "2013-07-16T19:23:00.000+00:00",
"departure_city": "London",
"departure_country": "GB",
"departure_tax_amount": 1200,
"fare_amount": 129900,
"fare_basis_code": "FY",
"fee_amount": 1200,
"flight_class": "E",
"flight_number": "101",
"route_type": "round_trip",
"seat_class": "F",
"stop_over": false,
"tax_amount": 1200
}
],
"passenger_name_record": "JOHN L",
"passengers": [
{
"age_group": "adult",
"date_of_birth": "2013-07-16",
"email_address": "[email protected]",
"first_name": "John",
"frequent_flyer_number": "15885566",
"last_name": "Luhn",
"passport_number": "11117700225",
"phone_number": "+1234567890",
"ticket_number": "BA1236699999",
"title": "Mr.",
"country_code": "US"
}
],
"reservation_system": "Amadeus",
"restricted_ticket": false,
"ticket_delivery_method": "electronic",
"ticket_number": "123-1234-151555",
"travel_agency_code": "12345",
"travel_agency_invoice_number": "EG15555155",
"travel_agency_name": "ACME Agency",
"travel_agency_plan_name": "B733"
},
"auth_response_code": "00",
"avs_response_code": "match",
"cvv_response_code": "match",
"anti_fraud_decision": "accept",
"cart_items": [
{
"name": "<string>",
"quantity": 123,
"unit_amount": 49999999,
"discount_amount": 0,
"tax_amount": 0,
"external_identifier": "goprohd",
"sku": "GPHD1078",
"upc": "012345678905",
"product_url": "https://example.com/catalog/go-pro-hd",
"image_url": "https://example.com/images/go-pro-hd.jpg",
"categories": [
"camera",
"travel",
"gear"
],
"product_type": "physical",
"seller_country": "US",
"tax_exempt": false,
"unit_of_measure": "feet",
"commodity_code": "43211503",
"description": "A brief description of an interesting item.",
"duty_amount": 1299,
"shipping_amount": 1299
}
],
"statement_descriptor": {
"name": "ACME",
"description": "ACME San Jose Electronics",
"city": "San Jose",
"country": "US",
"phone_number": "+1234567890",
"url": "www.example.com",
"postal_code": "94560"
},
"scheme_transaction_id": "123456789012345",
"three_d_secure": {
"version": "2.2.0",
"status": "complete",
"method": "challenge",
"response_data": {
"cavv": "<string>",
"eci": "<string>",
"version": "<string>",
"directory_response": "<string>",
"authentication_response": "<string>",
"cavv_algorithm": "<string>",
"xid": "<string>",
"scheme": "visa"
},
"error_data": {
"code": "305",
"description": "Invalid ThreeDSCompInd",
"detail": "The threeDSCompInd must be 'Y' when successful",
"component": "C"
}
},
"payment_service_transaction_id": "tx-12345",
"additional_identifiers": {},
"metadata": {
"cohort": "cohort-12345",
"order": "order-12345"
},
"authorized_at": "2013-07-16T19:23:00.000+00:00",
"captured_at": "2013-07-16T19:23:00.000+00:00",
"voided_at": "2013-07-16T19:23:00.000+00:00",
"canceled_at": "2013-07-16T19:23:00.000+00:00",
"approval_expires_at": "2013-07-16T19:23:00.000+00:00",
"buyer_approval_timedout_at": "2013-07-16T19:23:00.000+00:00",
"recipient": {
"first_name": "<string>",
"last_name": "<string>",
"address": {
"city": "San Jose",
"country": "US",
"postal_code": "94560",
"state": "California",
"state_code": "US-CA",
"house_number_or_name": "10",
"line1": "Stafford Appartments",
"line2": "29th Street",
"organization": "Gr4vy"
},
"account_number": "act12345",
"date_of_birth": "1995-12-23"
},
"merchant_advice_code": "02",
"installment_count": 3,
"session_token": "j3CZf9Eg6nUygMAVA6PXsVWGHiccj",
"tax_amount": 1299,
"merchant_tax_id": "<string>",
"purchase_order_number": "<string>",
"customer_reference_number": "<string>",
"amount_includes_tax": false,
"supplier_order_number": "<string>",
"duty_amount": 1299,
"shipping_amount": 1299
},
"type": "transaction-cancel"
}Cancels a pending transaction. If the transaction was successfully authorized, or was already captured, the cancel will not be processed.
using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.Transactions.CancelAsync(transactionId: "7099948d-7286-47e4-aad8-b68f7eb44591");
// handle response{
"status": "succeeded",
"code": "service_error",
"raw_response_code": "E104",
"raw_response_description": "Internal error",
"transaction": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reconciliation_id": "<string>",
"merchant_account_id": "<string>",
"currency": "<string>",
"amount": 123,
"status": "processing",
"authorized_amount": 123,
"captured_amount": 123,
"refunded_amount": 123,
"settled_amount": 123,
"settled": true,
"intent": "authorize",
"gift_card_redemptions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "created",
"amount": 123,
"refunded_amount": 123,
"gift_card": {
"bin": "<string>",
"sub_bin": "<string>",
"last4": "<string>",
"type": "gift-card",
"id": "356d56e5-fe16-42ae-97ee-8d55d846ae2e"
},
"type": "gift-card-redemption",
"gift_card_service_redemption_id": "xYqd43gySMtori",
"error_code": "expired_card",
"raw_error_code": "10001",
"raw_error_message": "Card expired"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"disputed": true,
"payment_source": "ecommerce",
"merchant_initiated": true,
"is_subsequent_payment": true,
"intent_outcome": "pending",
"multi_tender": true,
"account_funding_transaction": true,
"type": "transaction",
"settled_currency": "USD",
"country": "US",
"external_identifier": "transaction-12345",
"payment_method": {
"method": "abitab",
"type": "payment-method",
"approval_url": "https://gr4vy.app/redirect/12345",
"country": "US",
"currency": "USD",
"details": {
"bin": "<string>",
"card_type": "credit",
"card_issuer_name": "<string>"
},
"expiration_date": "12/30",
"fingerprint": "20eb353620155d2b5fc864cc46a73ea77cb92c725238650839da1813fa987a17",
"label": "1234",
"last_replaced_at": "2013-07-16T19:23:00.000+00:00",
"mode": "card",
"scheme": "visa",
"id": "852b951c-d7ea-4c98-b09e-4a1c9e97c077",
"approval_target": "any",
"external_identifier": "card-12345",
"payment_account_reference": "V0010014629724763377327521982"
},
"method": "card",
"instrument_type": "pan",
"error_code": "missing_redirect_url",
"payment_service": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_service_definition_id": "<string>",
"method": "abitab",
"display_name": "<string>",
"type": "payment-service"
},
"pending_review": false,
"buyer": {
"type": "buyer",
"id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
"display_name": "John Doe",
"external_identifier": "buyer-12345",
"billing_details": {
"first_name": "John",
"last_name": "Doe",
"email_address": "[email protected]",
"phone_number": "+1234567890",
"address": {
"city": "San Jose",
"country": "US",
"postal_code": "94560",
"state": "California",
"state_code": "US-CA",
"house_number_or_name": "10",
"line1": "Stafford Appartments",
"line2": "29th Street",
"organization": "Gr4vy"
},
"tax_id": {
"value": "<string>",
"kind": "ae.trn"
}
},
"account_number": "<string>"
},
"raw_response_code": "E104",
"raw_response_description": "Missing redirect URL",
"shipping_details": {
"first_name": "John",
"last_name": "Doe",
"email_address": "[email protected]",
"phone_number": "+1234567890",
"address": {
"city": "San Jose",
"country": "US",
"postal_code": "94560",
"state": "California",
"state_code": "US-CA",
"house_number_or_name": "10",
"line1": "Stafford Appartments",
"line2": "29th Street",
"organization": "Gr4vy"
},
"id": "bf8c36ad-02d9-4904-b0f9-a230b149e341",
"buyer_id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
"type": "shipping-details"
},
"checkout_session_id": "4137b1cf-39ac-42a8-bad6-1c680d5dab6b",
"gift_card_service": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"gift_card_service_definition_id": "mock-gift-card",
"display_name": "<string>",
"type": "gift-card-service"
},
"airline": {
"booking_code": "X36Q9C",
"is_cardholder_traveling": true,
"issued_address": "123 Broadway, New York",
"issued_at": "2013-07-16T19:23:00.000+00:00",
"issuing_carrier_code": "649",
"issuing_carrier_name": "Air Transat A.T. Inc",
"issuing_iata_designator": "TS",
"issuing_icao_code": "TSC",
"legs": [
{
"arrival_airport": "LAX",
"arrival_at": "2013-07-16T19:23:00.000+00:00",
"arrival_city": "Los Angeles",
"arrival_country": "US",
"carrier_code": "649",
"carrier_name": "Air Transat A.T. Inc",
"iata_designator": "TS",
"icao_code": "TSC",
"coupon_number": "15885566",
"departure_airport": "LHR",
"departure_at": "2013-07-16T19:23:00.000+00:00",
"departure_city": "London",
"departure_country": "GB",
"departure_tax_amount": 1200,
"fare_amount": 129900,
"fare_basis_code": "FY",
"fee_amount": 1200,
"flight_class": "E",
"flight_number": "101",
"route_type": "round_trip",
"seat_class": "F",
"stop_over": false,
"tax_amount": 1200
}
],
"passenger_name_record": "JOHN L",
"passengers": [
{
"age_group": "adult",
"date_of_birth": "2013-07-16",
"email_address": "[email protected]",
"first_name": "John",
"frequent_flyer_number": "15885566",
"last_name": "Luhn",
"passport_number": "11117700225",
"phone_number": "+1234567890",
"ticket_number": "BA1236699999",
"title": "Mr.",
"country_code": "US"
}
],
"reservation_system": "Amadeus",
"restricted_ticket": false,
"ticket_delivery_method": "electronic",
"ticket_number": "123-1234-151555",
"travel_agency_code": "12345",
"travel_agency_invoice_number": "EG15555155",
"travel_agency_name": "ACME Agency",
"travel_agency_plan_name": "B733"
},
"auth_response_code": "00",
"avs_response_code": "match",
"cvv_response_code": "match",
"anti_fraud_decision": "accept",
"cart_items": [
{
"name": "<string>",
"quantity": 123,
"unit_amount": 49999999,
"discount_amount": 0,
"tax_amount": 0,
"external_identifier": "goprohd",
"sku": "GPHD1078",
"upc": "012345678905",
"product_url": "https://example.com/catalog/go-pro-hd",
"image_url": "https://example.com/images/go-pro-hd.jpg",
"categories": [
"camera",
"travel",
"gear"
],
"product_type": "physical",
"seller_country": "US",
"tax_exempt": false,
"unit_of_measure": "feet",
"commodity_code": "43211503",
"description": "A brief description of an interesting item.",
"duty_amount": 1299,
"shipping_amount": 1299
}
],
"statement_descriptor": {
"name": "ACME",
"description": "ACME San Jose Electronics",
"city": "San Jose",
"country": "US",
"phone_number": "+1234567890",
"url": "www.example.com",
"postal_code": "94560"
},
"scheme_transaction_id": "123456789012345",
"three_d_secure": {
"version": "2.2.0",
"status": "complete",
"method": "challenge",
"response_data": {
"cavv": "<string>",
"eci": "<string>",
"version": "<string>",
"directory_response": "<string>",
"authentication_response": "<string>",
"cavv_algorithm": "<string>",
"xid": "<string>",
"scheme": "visa"
},
"error_data": {
"code": "305",
"description": "Invalid ThreeDSCompInd",
"detail": "The threeDSCompInd must be 'Y' when successful",
"component": "C"
}
},
"payment_service_transaction_id": "tx-12345",
"additional_identifiers": {},
"metadata": {
"cohort": "cohort-12345",
"order": "order-12345"
},
"authorized_at": "2013-07-16T19:23:00.000+00:00",
"captured_at": "2013-07-16T19:23:00.000+00:00",
"voided_at": "2013-07-16T19:23:00.000+00:00",
"canceled_at": "2013-07-16T19:23:00.000+00:00",
"approval_expires_at": "2013-07-16T19:23:00.000+00:00",
"buyer_approval_timedout_at": "2013-07-16T19:23:00.000+00:00",
"recipient": {
"first_name": "<string>",
"last_name": "<string>",
"address": {
"city": "San Jose",
"country": "US",
"postal_code": "94560",
"state": "California",
"state_code": "US-CA",
"house_number_or_name": "10",
"line1": "Stafford Appartments",
"line2": "29th Street",
"organization": "Gr4vy"
},
"account_number": "act12345",
"date_of_birth": "1995-12-23"
},
"merchant_advice_code": "02",
"installment_count": 3,
"session_token": "j3CZf9Eg6nUygMAVA6PXsVWGHiccj",
"tax_amount": 1299,
"merchant_tax_id": "<string>",
"purchase_order_number": "<string>",
"customer_reference_number": "<string>",
"amount_includes_tax": false,
"supplier_order_number": "<string>",
"duty_amount": 1299,
"shipping_amount": 1299
},
"type": "transaction-cancel"
}transactions.write scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
The ID of the transaction
Successful Response
The status of the cancel call.
succeeded, pending, failed The standardized error code set by Gr4vy.
"service_error"
This is the response code received from the payment service. This can be set to any value and is not standardized across different payment services.
"E104"
This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services.
"Internal error"
The transaction associated to this cancel.
Show child attributes
The ID for the transaction.
The base62 encoded transaction ID. This represents a shorter version of this transaction's id which is sent to payment services, anti-fraud services, and other connectors. You can use this ID to reconcile a payment service's transaction against our system. This ID is sent instead of the transaction ID because not all services support 36 digit identifiers.
The ID of the merchant account this transaction belongs to.
The currency code for this transaction.
The total amount for this transaction across all funding sources including gift cards.
The status of the transaction for the payment_method. The status may change over time as asynchronous processing events occur.
processing, authorization_succeeded, authorization_declined, authorization_failed, authorization_voided, authorization_void_pending, capture_succeeded, capture_pending, buyer_approval_pending The amount for this transaction that has been authorized for the payment_method. This can be less than the amount if gift cards were used.
The total amount captured for this transaction, in the smallest currency unit (for example, cents or pence). This can be the full value of the authorized_amount or less.
The total amount refunded for this transaction, in the smallest currency unit (for example, cents or pence). This can be the full value of the captured_amount or less.
The net amount settled for this transaction, in the smallest currency unit (for example, cents or pence).
Indicates whether this transaction has been settled.
The original intent used when the transaction was created.
authorize, capture The gift cards redeemed for this transaction.
Show child attributes
The ID for the gift card redemption.
The status of the gift card redemption for the payment_method.
created, succeeded, failed, skipped The amount redeemed for this gift card.
The amount refunded for this gift card. This can not be larger than amount.
The gift card used for this redemption
Show child attributes
The first 6 digits of the full gift card number.
The 3 digits after the bin of the full gift card number.
The last 4 digits for the gift card.
Always gift-card.
"gift-card"The ID for the gift card.
"356d56e5-fe16-42ae-97ee-8d55d846ae2e"
Always gift-card-redemption.
"gift-card-redemption"The gift card service's unique ID for the redemption.
"xYqd43gySMtori"
If this gift card redemption resulted in an error, this will contain the internal code for the error.
invalid_gift_card, expired_card, inactive_card, invalid_service_credentials, invalid_amount, incorrect_currency, insufficient_funds, invalid_service_configuration, operation_canceled, service_error, service_network_error, unknown_error, max_gift_cards_reached "expired_card"
If this gift card redemption resulted in an error, this will contain the raw error code received from the gift card provider.
"10001"
If this gift card redemption resulted in an error, this will contain the raw error message received from the gift card provider.
"Card expired"
The date and time when the transaction was created, in ISO 8601 format.
The date and time when the transaction was last updated, in ISO 8601 format.
Indicates whether this transaction has been disputed.
The way payment method information made it to this transaction.
ecommerce, moto, recurring, installment, card_on_file Indicates whether the transaction was initiated by the merchant or the customer.
Indicates whether the transaction represents a subsequent payment or an initial one.
The outcome of the original intent of a transaction. This allows you to understand if the intent of the transaction (e.g. capture or authorize) has been achieved when dealing with multiple payment instruments.
pending, succeeded, failed The outcome of the original intent of a transaction. This allows you to understand if the intent of the transaction (e.g. capture or authorize) has been achieved when dealing with multiple payment instruments.
Marks the transaction as an AFT. Requires the payment service to support this feature, and might recipient and buyer data
Always transaction.
"transaction"The ISO 4217 currency code of this transaction's settlement.
"USD"
The 2-letter ISO 3166-1 alpha-2 country code for the transaction. Used to filter payment services for processing.
"US"
An external identifier that can be used to match the transaction against your own records.
1 - 200"transaction-12345"
The payment method used for this transaction.
Show child attributes
The type of this payment method.
abitab, affirm, afterpay, alipay, alipayhk, applepay, arcuspaynetwork, bacs, bancontact, bank, banked, bcp, becs, bitpay, blik, boleto, boost, card, cashapp, chaseorbital, clearpay, click-to-pay, dana, dcb, dlocal, ebanx, efecty, eps, everydaypay, gcash, gem, gemds, gift-card, giropay, givingblock, gocardless, googlepay, googlepay_pan_only, gopay, grabpay, ideal, kakaopay, kcp, khipu, klarna, latitude, latitudeds, laybuy, linepay, linkaja, maybankqrpay, mercadopago, multibanco, multipago, nequi, netbanking, network-token, nupay, oney_10x, oney_12x, oney_3x, oney_4x, oney_6x, ovo, oxxo, p24, pagoefectivo, payid, paymaya, paypal, paypalpaylater, payto, payvalida, picpay, pix, plaid, pse, rabbitlinepay, razorpay, rapipago, redpagos, scalapay, sepa, servipag, shopeepay, singteldash, smartpay, sofort, spei, stitch, stripedd, stripetoken, tapi, tapifintechs, thaiqr, touchngo, truemoney, trustly, trustlyeurope, upi, venmo, vipps, waave, webpay, wechat, yape, zippay Always payment-method.
"payment-method"The optional URL that the buyer needs to be redirected to to further authorize their payment.
"https://gr4vy.app/redirect/12345"
The 2-letter ISO code of the country this payment method can be used for. If this value is null the payment method may be used in multiple countries.
"US"
The ISO-4217 currency code that this payment method can be used for. If this value is null the payment method may be used for multiple currencies.
"USD"
Details for credit or debit card payment method.
The expiration date for the payment method.
5"12/30"
The unique hash derived from the payment method identifier (e.g. card number).
"20eb353620155d2b5fc864cc46a73ea77cb92c725238650839da1813fa987a17"
A label for the card or the account. For a paypal payment method this is the user's email address. For a card it is the last 4 digits of the card.
320"1234"
The date and time when this card was last replaced by the account updater.
"2013-07-16T19:23:00.000+00:00"
The mode to use with this payment method.
card, redirect, applepay, googlepay, checkout-session, click-to-pay, gift-card, bank "card"
The scheme of the card. Only applies to card payments.
accel, amex, bancontact, carte-bancaire, cirrus, culiance, dankort, diners-club, discover, eftpos-australia, elo, hipercard, jcb, maestro, mastercard, mir, nyce, other, pulse, rupay, star, uatp, unionpay, visa "visa"
The ID of the payment method.
"852b951c-d7ea-4c98-b09e-4a1c9e97c077"
The browser target that an approval URL must be opened in. If any or null, then there is no specific requirement.
new_window, any "any"
An external identifier that can be used to match the payment method against your own records.
1 - 200"card-12345"
The payment account reference (PAR) returned by the card scheme. This is a unique reference to the underlying account that has been used to fund this payment method.
"V0010014629724763377327521982"
The method used for the transaction.
abitab, affirm, afterpay, alipay, alipayhk, applepay, arcuspaynetwork, bacs, bancontact, bank, banked, bcp, becs, bitpay, blik, boleto, boost, card, cashapp, chaseorbital, clearpay, click-to-pay, dana, dcb, dlocal, ebanx, efecty, eps, everydaypay, gcash, gem, gemds, gift-card, giropay, givingblock, gocardless, googlepay, googlepay_pan_only, gopay, grabpay, ideal, kakaopay, kcp, khipu, klarna, latitude, latitudeds, laybuy, linepay, linkaja, maybankqrpay, mercadopago, multibanco, multipago, nequi, netbanking, network-token, nupay, oney_10x, oney_12x, oney_3x, oney_4x, oney_6x, ovo, oxxo, p24, pagoefectivo, payid, paymaya, paypal, paypalpaylater, payto, payvalida, picpay, pix, plaid, pse, rabbitlinepay, razorpay, rapipago, redpagos, scalapay, sepa, servipag, shopeepay, singteldash, smartpay, sofort, spei, stitch, stripedd, stripetoken, tapi, tapifintechs, thaiqr, touchngo, truemoney, trustly, trustlyeurope, upi, venmo, vipps, waave, webpay, wechat, yape, zippay "card"
The name of the instrument used to process the transaction.
pan, card_token, redirect, redirect_token, googlepay, applepay, network_token, plaid "pan"
The standardized error code set by Gr4vy.
"missing_redirect_url"
The payment service used for this transaction.
Show child attributes
The ID for the payment-service.
The definition ID of the service used to process this payment.
1 - 50The payment method that this service handles.
abitab, affirm, afterpay, alipay, alipayhk, applepay, arcuspaynetwork, bacs, bancontact, bank, banked, bcp, becs, bitpay, blik, boleto, boost, card, cashapp, chaseorbital, clearpay, click-to-pay, dana, dcb, dlocal, ebanx, efecty, eps, everydaypay, gcash, gem, gemds, gift-card, giropay, givingblock, gocardless, googlepay, googlepay_pan_only, gopay, grabpay, ideal, kakaopay, kcp, khipu, klarna, latitude, latitudeds, laybuy, linepay, linkaja, maybankqrpay, mercadopago, multibanco, multipago, nequi, netbanking, network-token, nupay, oney_10x, oney_12x, oney_3x, oney_4x, oney_6x, ovo, oxxo, p24, pagoefectivo, payid, paymaya, paypal, paypalpaylater, payto, payvalida, picpay, pix, plaid, pse, rabbitlinepay, razorpay, rapipago, redpagos, scalapay, sepa, servipag, shopeepay, singteldash, smartpay, sofort, spei, stitch, stripedd, stripetoken, tapi, tapifintechs, thaiqr, touchngo, truemoney, trustly, trustlyeurope, upi, venmo, vipps, waave, webpay, wechat, yape, zippay The display name for the payment service.
Always payment-service.
"payment-service"Whether a manual anti fraud review is pending with an anti fraud service.
The buyer used for this transaction.
Show child attributes
Always buyer.
"buyer"The ID for the buyer.
"fe26475d-ec3e-4884-9553-f7356683f7f9"
The display name for the buyer.
1 - 200"John Doe"
The merchant identifier for this buyer.
1 - 200"buyer-12345"
The billing name, address, email, and other fields for this buyer.
Show child attributes
The first name(s) or given name for the buyer.
1 - 255"John"
The last name, or family name, of the buyer.
1 - 255"Doe"
The phone number for the buyer which should be formatted according to the E164 number standard.
"+1234567890"
The billing address for the buyer.
Show child attributes
The city for the address.
1 - 100"San Jose"
The country for the address in ISO 3166 format.
"US"
The postal code or zip code for the address.
1 - 50"94560"
The state, county, or province for the address.
1 - 255"California"
The code of state, county, or province for the address in ISO 3166-2 format.
"US-CA"
The house number or name for the address. Not all payment services use this field but some do.
1 - 255"10"
The first line of the address.
1 - 255"Stafford Appartments"
The second line of the address.
1 - 255"29th Street"
The optional name of the company or organisation to add to the address.
1 - 255"Gr4vy"
The tax ID information associated with the billing details.
Show child attributes
The tax ID for the buyer.
1 - 50The kind of tax ID
ae.trn, au.abn, ar.dni, ar.cuil, ar.cuit, br.cnpj, br.cpf, ca.bn, ca.gst_hst, ca.pst_bc, ca.pst_mb, ca.pst_sk, ca.qst, ch.vat, cl.tin, co.itin, co.nit, es.cif, eu.vat, gb.vat, hk.br, id.nik, id.npwp, in.gst, in.pan, jp.cn, jp.rn, kr.brn, li.uid, mx.curp, mx.rfc, my.frp, my.itn, my.nric, my.sst, no.vat, nz.gst, pe.ruc, ph.tin, ru.inn, ru.kpp, sa.vat, sg.gst, sg.uen, th.id, th.vat, tw.vat, us.ein, za.vat, bo.ci, uy.rut, uy.ci The buyer account number.
1 - 200This is the response code received from the payment service. This can be set to any value and is not standardized across different payment services.
"E104"
This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services.
"Missing redirect URL"
The shipping details associated with the transaction.
Show child attributes
The first name(s) or given name for the buyer.
1 - 255"John"
The last name, or family name, of the buyer.
1 - 255"Doe"
The phone number for the buyer which should be formatted according to the E164 number standard.
"+1234567890"
The billing address for the buyer.
Show child attributes
The city for the address.
1 - 100"San Jose"
The country for the address in ISO 3166 format.
"US"
The postal code or zip code for the address.
1 - 50"94560"
The state, county, or province for the address.
1 - 255"California"
The code of state, county, or province for the address in ISO 3166-2 format.
"US-CA"
The house number or name for the address. Not all payment services use this field but some do.
1 - 255"10"
The first line of the address.
1 - 255"Stafford Appartments"
The second line of the address.
1 - 255"29th Street"
The optional name of the company or organisation to add to the address.
1 - 255"Gr4vy"
The ID for the shipping details.
"bf8c36ad-02d9-4904-b0f9-a230b149e341"
The ID for the buyer.
"fe26475d-ec3e-4884-9553-f7356683f7f9"
Always shipping-details.
"shipping-details"The identifier for the checkout session this transaction is associated with.
"4137b1cf-39ac-42a8-bad6-1c680d5dab6b"
The gift card service used for this transaction.
Show child attributes
The ID for the gift card service.
The ID of the definition for this service.
mock-gift-card, qwikcilver-gift-card The display name for the gift card service.
1 - 200Always gift-card-service.
"gift-card-service"Contains information about an airline travel, if applicable.
Show child attributes
The unique identifier of the reservation in the global distribution system.
1 - 50"X36Q9C"
Indicates whether the cardholder is traveling.
true
The address of the place/agency that issued the ticket.
1 - 255"123 Broadway, New York"
The date that the ticket was last issued in the airline reservation system.
"2013-07-16T19:23:00.000+00:00"
For airline aggregators, three-character IATA code of the airline issuing the ticket.
2 - 3"649"
For airline aggregators, name of the airline issuing the ticket.
1"Air Transat A.T. Inc"
For airline aggregators, two-character IATA code of the airline issuing the ticket.
2"TS"
For airline aggregators, three-character ICAO code of the airline issuing the ticket.
3"TSC"
An array of separate trip segments. Each leg contains detailed itinerary information.
20Show child attributes
Arrival airport code of leg. 3-letter ISO code according to IATA official directory.
3"LAX"
The date and time of travel in local time at the arrival airport.
"2013-07-16T19:23:00.000+00:00"
Arrival city name.
1 - 100"Los Angeles"
Arrival country code in ISO 3166 format.
"US"
3 character airline code as set by IATA.
2 - 3"649"
Name of the airline.
1"Air Transat A.T. Inc"
Two-character IATA code of the airline.
2"TS"
Three-character ICAO code of the airline.
3"TSC"
Coupon number associated with the leg.
1 - 50"15885566"
Departure airport code of leg. 3-letter ISO code according to IATA official directory.
3"LHR"
The date and time of travel in local time at the departure airport.
"2013-07-16T19:23:00.000+00:00"
Departure city name.
1 - 100"London"
Departure airport code of leg. 3-letter ISO code according to IATA official directory.
"GB"
Departure tax amount charged by a country when a person is leaving the country.
0 <= x <= 999999991200
Amount of the ticket, for current leg of the trip, excluding taxes and fees.
0 <= x <= 99999999129900
The alphanumeric code for the booking class of a ticket.
1 - 8"FY"
Fee amount for current leg of the trip.
0 <= x <= 999999991200
Indicates service class (first class, business class, etc.).
1 - 5"E"
Unique identifier of the flight number.
3 - 6"101"
The route type of the flight.
round_trip, one_way "round_trip"
Indicates seat class (first class, business class, etc.).
1 - 5"F"
Indicates whether a stopover is allowed on this ticket.
false
Amount of the taxes for current leg of the trip.
0 <= x <= 999999991200
The Passenger Name Record (PNR) in the airline reservation system.
1 - 50"JOHN L"
An array of the travelling passengers.
20Show child attributes
The age group for the passenger.
adult, infant "adult"
The passenger's date of birth in YYYY-MM-YY format.
"2013-07-16"
The first name(s) or given name of the passenger.
1 - 255"John"
The passenger's frequent flyer number.
5 - 50"15885566"
The last name, or family name, of the passenger.
1 - 255"Luhn"
The passenger's unique passport number.
1 - 50"11117700225"
The phone number of the passenger. This number is formatted according to the E164 number standard.
"+1234567890"
The ticket number for a flight.
1 - 50"BA1236699999"
Title of the passenger.
1 - 50"Mr."
The country of residence of the passenger
"US"
The name of the reservation system.
1 - 200"Amadeus"
Indicates whether the ticket is restricted (refundable).
false
The delivery method of the ticket.
electronic, other "electronic"
The airline's unique ticket number.
1 - 50"123-1234-151555"
The IATA travel agency code.
1 - 50"12345"
The reference number of the invoice that was issued by the travel agency.
1 - 50"EG15555155"
The name of the travel agency.
1 - 200"ACME Agency"
The name of the travel agency plan.
1 - 200"B733"
This is the response description received from the processor.
"00"
The response code received from the payment service for the Address Verification Check (AVS). This code is mapped to a standardized Gr4vy AVS response code.
match, no_match, partial_match_address, partial_match_postcode, partial_match_name, unavailable "match"
The response code received from the payment service for the Card Verification Value (CVV). This code is mapped to a standardized Gr4vy CVV response code.
match, no_match, unavailable, not_provided "match"
The mapped decision received from the anti-fraud service. In case of a review decision this field is not updated once the review is resolved.
accept, error, exception, reject, review, skipped, pending "accept"
An array of cart items that represents the line items of a transaction.
Show child attributes
The name of the cart item. The value you set for this property may be truncated if the maximum length accepted by a payment service provider is less than 255 characters.
1 - 255The quantity of this item in the cart. This value cannot be negative or zero.
x <= 99999999The amount for an individual item represented as a monetary amount in the smallest currency unit for the given currency, for example 1299 USD cents represents $12.99. The amount sent through to the payment processor as unitary amount will be calculated to include the discount and tax values sent as part of this cart item.
0 <= x <= 99999999The amount discounted for this item represented as a monetary amount in the smallest currency unit for the given currency, for example 1299 USD cents represents $12.99.
0 <= x <= 999999990
The tax amount for this item represented as a monetary amount in the smallest currency unit for the given currency, for example 1299 USD cents represents $12.99.
0 <= x <= 999999990
An external identifier for the cart item. This can be set to any value and is not sent to the payment service.
1 - 200"goprohd"
The SKU or product code for the item.
1 - 200"GPHD1078"
The UPC for the item.
1 - 50"012345678905"
The product URL for the item.
"https://example.com/catalog/go-pro-hd"
The URL for the image of the item.
"https://example.com/images/go-pro-hd.jpg"
A list of strings containing product categories for the item.
1 - 50["camera", "travel", "gear"]The product type of the cart item.
physical, discount, shipping_fee, sales_tax, digital, gift_card, store_credit, surcharge "physical"
The seller country of the cart item.
"US"
Whether the item is exempt of tax.
false
The unit of measure or the unit of measure code.
1 - 50"feet"
Item commodity code. Generally a UNSPSC code.
1 - 50"43211503"
Brief item description.
1 - 255"A brief description of an interesting item."
Item import or export duties represented as a monetary amount in the smallest currency unit for the given currency, for example 1299 cents to create an authorization for $12.99
0 <= x <= 999999991299
Freight/shipping amount represented as a monetary amount in the smallest currency unit for the given currency, for example 1299 cents to create an authorization for $12.99
0 <= x <= 999999991299
The statement descriptor is the text to be shown on the buyer's statements.
Show child attributes
Reflects your doing business as (DBA) name.
5 - 22"ACME"
A short description about the purchase.
5 - 22"ACME San Jose Electronics"
The merchant's city to be displayed in a statement descriptor.
1 - 50"San Jose"
The 2-letter ISO country code of the merchant to be displayed in a statement descriptor.
"US"
The value in the phone number field of a customer's statement which should be formatted according to the E164 number standard.
"+1234567890"
The merchant's URL to be displayed in a statement descriptor.
1 - 50"www.example.com"
The merchant's postal code or zip code.
1 - 50"94560"
An identifier for the transaction used by the scheme itself, when available.
"123456789012345"
The 3-D Secure data that was sent to the payment service for the transaction.
Show child attributes
The version of 3DS used for this transaction.
"2.2.0"
The status of the 3DS challenge for this transaction.
setup_error, error, declined, cancelled, complete "complete"
The method used for 3DS authentication for this transaction.
challenge, frictionless "challenge"
The 3DS data sent to the payment service for this transaction. This will only be populated if external 3DS data was passed in directly as part of the transaction API call, or if our 3DS server returned a status code of Y or A. In case of a failure to authenticate (status N, R, or U) this field will not be populated. To see full details about the 3DS calls please use our transaction events API.
Show child attributes
The cardholder authentication value or AAV.
The ecommerce indicator for the 3DS transaction.
1 - 2The version of 3-D Secure that was used.
For 3-D Secure version 1, the enrolment response. For 3-D Secure version 2 and above, the transaction status from the ARes.
1The response for the 3DS authentication call.
1The CAVV algorithm used.
1The transaction identifier.
The scheme/brand of the card that is used for 3-D Secure.
accel, amex, bancontact, carte-bancaire, cirrus, culiance, dankort, diners-club, discover, eftpos-australia, elo, hipercard, jcb, maestro, mastercard, mir, nyce, other, pulse, rupay, star, uatp, unionpay, visa "visa"
The error data received from our 3DS server. This will not be populated if the customer failed the authentication with a status code of N, R, or U. To see full details about the 3DS calls in those situations please use our transaction events API.
Show child attributes
The error code.
3"305"
The error description.
2048"Invalid ThreeDSCompInd"
Detail about the 3DS error.
2048"The threeDSCompInd must be 'Y' when successful"
Code indicating the 3-D Secure component that identified the error.
1"C"
The payment service's unique ID for the transaction.
"tx-12345"
A list of additional identifiers that we may keep track of to manage this transaction. This may include the authorization ID, capture ID, and processor ID, as well as an undefined list of additional identifiers.
Show child attributes
The date this transaction was authorized at.
"2013-07-16T19:23:00.000+00:00"
The date this transaction was captured at.
"2013-07-16T19:23:00.000+00:00"
The date this transaction was voided at.
"2013-07-16T19:23:00.000+00:00"
The date this transaction was canceled at.
"2013-07-16T19:23:00.000+00:00"
The date this transaction's approval URL will expire at.
"2013-07-16T19:23:00.000+00:00"
The date this transaction's approval timed out at.
"2013-07-16T19:23:00.000+00:00"
The recipient of any account to account funding. For use with AFTs.
Show child attributes
The first name of the recipient.
The last name of the recipient.
The recipient of the fund's address.
Show child attributes
The city for the address.
1 - 100"San Jose"
The country for the address in ISO 3166 format.
"US"
The postal code or zip code for the address.
1 - 50"94560"
The state, county, or province for the address.
1 - 255"California"
The code of state, county, or province for the address in ISO 3166-2 format.
"US-CA"
The house number or name for the address. Not all payment services use this field but some do.
1 - 255"10"
The first line of the address.
1 - 255"Stafford Appartments"
The second line of the address.
1 - 255"29th Street"
The optional name of the company or organisation to add to the address.
1 - 255"Gr4vy"
The account number of the recipient. Depending on the type of funds transfer, this could be a wallet ID, bank accoutn number, or email address.
"act12345"
The date of birth of the recipient.
"1995-12-23"
An optional merchant advice code which provides insight into the type of transaction or reason why the payment failed.
"02"
The number of installments for this transaction, if applicable.
3
A session token that can be used to fetch session data for direct client integrations.
"j3CZf9Eg6nUygMAVA6PXsVWGHiccj"
The sales tax amount for this transaction, represented as a monetary amount in the smallest currency unit for the given currency, for example 1299 cents to create an authorization for $12.99
0 <= x <= 999999991299
Merchant tax ID (for example, EIN or VAT number).
1 - 100Invoice number or Purchase Order number.
1 - 100Customer code or reference.
1 - 100Whether the tax is included in the amount.
false
The merchant's unique identifier for the sales order or invoice.
1 - 100Total charges for import/export duties.
0 <= x <= 999999991299
Total shipping amount.
0 <= x <= 999999991299
Always transaction-cancel.
"transaction-cancel"Was this page helpful?