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.UpdateAsync(
transactionId: "7099948d-7286-47e4-aad8-b68f7eb44591",
transactionUpdate: new TransactionUpdate() {}
);
// handle response{
"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
}Manually updates a transaction.
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.UpdateAsync(
transactionId: "7099948d-7286-47e4-aad8-b68f7eb44591",
transactionUpdate: new TransactionUpdate() {}
);
// handle response{
"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
}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.
"default"
The ID of the transaction
An external identifier that can be used to match the transaction against your own records.
1 - 200"transaction-12345"
Allows for passing optional configuration per connection to take advantage of connection specific features. When provided, the data is only passed to the target connection type to prevent sharing configuration across connections. Please note that each of the keys this object are in kebab-case, for example cybersource-anti-fraud as they represent the ID of the connector. All the other keys will be snake case, for example merchant_defined_data or camel case to match an external API that the connector uses. If provided, the whole value will be overridden.
Show child attributes
Custom options to be passed to the account-updater connector, allowing for simulating different account updater responses.
Show child attributes
The type of response to simulate.
"updated""updated"
When the response_code is set to updated, the payment method's account number will be updated to this value.
12 - 18"4242424242424242"
When the response_code is set to updated, the payment method's expiration month will be updated to this value.
2"12"
When the response_code is set to updated, the payment method's expiration year will be updated to this value.
4"2030"
The type of error code to simulate.
"error"
Custom options to be passed to the adyen-afterpay connector.
Custom options to be passed to the adyen-alipay connector.
Custom options to be passed to the adyen-card connector.
Show child attributes
Set to true to enable Auto Rescue for a transaction. Use the maxDaysToRescue to specify a rescue window.
true
The rescue window for a transaction, in days, when autoRescue is set to true. You can specify a value between 1 and 48. For cards, the default is one calendar month. For SEPA, the default is 42 days.
20
The rescue scenario to simulate for a transaction, when autoRescue is set to true.
AutoRescueSuccessfulFirst, AutoRescueSuccessfulSecond, AutoRescueFailed, AutoRescueFraud "AutoRescueSuccessfulFirst"
The origin of the window where the payment is initiated, used for 3D Secure authentication.
"https://example.com"
Passes information of splitting payment amounts to the Adyen API.
Show child attributes
Split payment values to pass to the Adyen API on payment authorization. See the Adyen docs for details on the format and contents of the list.
Split payment values to pass to the Adyen API on payment capture. See the Adyen docs for details on the format and contents of the list.
Split payment values to pass to the Adyen API on payment refund. See the Adyen docs for details on the format and contents of the list.
Custom options to be passed to the adyen-cashapp connector.
Custom options to be passed to the adyen-giropay connector.
Custom options to be passed to the adyen-ideal connector.
Custom options to be passed to the adyen-sepa connector.
Show child attributes
Set to true to enable Auto Rescue for a transaction. Use the maxDaysToRescue to specify a rescue window.
true
The rescue window for a transaction, in days, when autoRescue is set to true. You can specify a value between 1 and 48. For cards, the default is one calendar month. For SEPA, the default is 42 days.
20
The rescue scenario to simulate for a transaction, when autoRescue is set to true.
AutoRescueSuccessfulFirst, AutoRescueSuccessfulSecond, AutoRescueFailed "AutoRescueSuccessfulFirst"
The name on the SEPA bank account.
"A. Schneider"
Custom options to be passed to the adyen-sofort connector.
Custom options to be passed to the adyen-vipps connector.
Custom options to be passed to the affirm-affirm connector.
Show child attributes
Passes additional discounts to the Affirm widget.
Show child attributes
{
"PRESDAY10": {
"discount_amount": 1000,
"discount_display_name": "President's Day 10% off"
},
"RETURN5": {
"discount_amount": 500,
"discount_display_name": "Returning customer 5% discount"
}
}Passes itinerary data to the Affirm API.
Show child attributes
The type of itinerary object.
"flight"
The booking/itinerary number (if applicable).
"ABC123"
Readable description of the itinerary item.
"MIA-DCA-2019-12-11T12:07"
The name of the venue where the event is hosted.
"Petco Park"
The address object that can be parsed.
"925 Collins Avenue, Miami Beach, FL, 33140, US"
The start date of this itinerary item.
"2019-12-05"
The corporation.
"Marriott"
Custom options to be passed to the braintree-card connector.
Show child attributes
Passes a discount amount to be applied to the transaction when using Braintree.
1000
Passes customFields to the Braintree API when creating a new payment. Custom fields allow you to customize your checkout experience by collecting specific information about your customers and their purchases.
Show child attributes
{ "checkout": "primary" }Additional dynamic fields to pass to the Braintree API
Show child attributes
Passes the 3DS status to the Braintree API using customFields with the key set to the value of three_ds_auth_status
"threeDStatus"
Passes the transaction.purchaseOrderNumber field when creating a new transaction.
"po-12345"
Passes the vaultPaymentMethodCriteria field when creating a new transaction.
ALWAYS, ON_SUCCESSFUL_TRANSACTION "ON_SUCCESSFUL_TRANSACTION"
Custom options to be passed to the cybersource-anti-fraud connector.
Show child attributes
A list of merchant defined data to be passed to the Cybersource Decision Manager API. Each key needs to be a numeric string.
Show child attributes
5000{ "1": "data" }The merchant ID to use for this transaction. This requires a meta key to be set up for use with Cybersource Decision Manager, and this overrides the connector configuration.
"merchant-1234"
The shipping method for this transaction.
"sameday"
Custom options to be passed to the cybersource-card connector.
Show child attributes
The merchant ID to use for this transaction. This requires a meta key to be set up for use with Cybersource, and this overrides the connector configuration.
"merchant-1234"
A list of merchant defined data to be passed to the Cybersource. Each key needs to be a numeric string.
Show child attributes
{ "1": "data" }The shipping method for this transaction.
"sameday"
Brief description of the order or any comment you wish to add to the order.
"This order is for a new customer"
Custom options to be passed to the cybersource-ideal connector.
Show child attributes
The merchant ID to use for this transaction. This requires a meta key to be set up for use with Cybersource, and this overrides the connector configuration.
"merchant-1234"
A list of merchant defined data to be passed to the Cybersource. Each key needs to be a numeric string.
Show child attributes
{ "1": "data" }The shipping method for this transaction.
"sameday"
Brief description of the order or any comment you wish to add to the order.
"This order is for a new customer"
Custom options to be passed to the cybersource-kcp connector.
Show child attributes
The merchant ID to use for this transaction. This requires a meta key to be set up for use with Cybersource, and this overrides the connector configuration.
"merchant-1234"
A list of merchant defined data to be passed to the Cybersource. Each key needs to be a numeric string.
Show child attributes
{ "1": "data" }The shipping method for this transaction.
"sameday"
Brief description of the order or any comment you wish to add to the order.
"This order is for a new customer"
Custom options to be passed to the dlocal-nequi connector.
Show child attributes
Passes wallet data to the dLocal API for those connectors that need it.
Show child attributes
Passes wallet.name to the dLocal API for those connectors that need it.
"John Doe"
Passes wallet.email to the dLocal API for those connectors that need it.
Passes wallet.token to the dLocal API for those connectors that need it.
"123456"
Passes wallet.username to the dLocal API for those connectors that need it.
"johnd"
Passes wallet.verify to the dLocal API for those connectors that need it.
true
Custom options to be passed to the dlocal-upi connector.
Show child attributes
Passes wallet data to the dLocal API for those connectors that need it.
Show child attributes
Passes wallet.name to the dLocal API for those connectors that need it.
"John Doe"
Passes wallet.email to the dLocal API for those connectors that need it.
Passes wallet.token to the dLocal API for those connectors that need it.
"123456"
Passes wallet.username to the dLocal API for those connectors that need it.
"johnd"
Passes wallet.verify to the dLocal API for those connectors that need it.
true
Passes wallet.recurring_info to the dLocal API for those connectors that need it.
Show child attributes
Indicates the frequency unit for the subscription. Allowed values are: DAY, WEEK, MONTH, BI_MONTHLY, QUARTER, SEMI_ANNUALLY, YEAR, ONDEMAND.
MONTH, WEEK, BI_MONTHLY, ONDEMAND, QUARTER, YEAR, SEMI_ANNUALLY, DAY Indicates the frequency for the subscription.
Indicates the start date for the subscription in format YYYYMMDD.
Indicates the end date for the subscription in format YYYYMMDD.
{
"subscription_end_at": "20241201",
"subscription_frequency": 1,
"subscription_frequency_unit": "MONTH",
"subscription_start_at": "20231201"
}Custom options to be passed to the fiserv-card connector.
Show child attributes
Passes installment data to the Fiserv API. This is now also a dedicated feature on the Gr4vy API.
Show child attributes
Passes the order.installmentOptions.numberOfInstallments field to the Fiserv API.
6
Passes the order.installmentOptions.installmentsInterest field to the Fiserv API.
true
Passes the order.installmentOptions.installmentDelayMonths field to the Fiserv API.
1
Passes the order.installmentOptions.merchantAdviceCodeSupported field to the Fiserv API.
true
Custom options to be passed to the forter-anti-fraud connector.
Show child attributes
The delivery type
DIGITAL, PHYSICAL, HYBRID "DIGITAL"
The delivery method
1 - 50Defines if this payment is made using guest checkout.
true
A list of cart items details to pass to the Forter API.
Show child attributes
Basic information about the cart item.
Show child attributes
Indicates whether the item is a physical good or a service/digital item.
TANGIBLE, NON_TANGIBLE Details about how the item will be delivered.
Show child attributes
The type of delivery for this cart item.
DIGITAL, PHYSICAL, HYBRID The method of delivery for this cart item.
List of beneficiaries who will receive this item.
Show child attributes
Personal details of the beneficiary.
Show child attributes
First name of the beneficiary.
Last name of the beneficiary.
Email address of the beneficiary.
Address information of the beneficiary.
Show child attributes
The country code of the beneficiary's address.
First line of the beneficiary's address.
Second line of the beneficiary's address.
Zip or postal code of the beneficiary's address.
State or region of the beneficiary's address.
Company name associated with the beneficiary's address.
City of the beneficiary's address.
Phone numbers associated with the beneficiary.
Show child attributes
The phone number of the beneficiary.
Comments related to the beneficiary.
Show child attributes
Comments from the user to the merchant.
Message intended for the beneficiary of the item.
Comments from the merchant about this transaction.
Information about the discount applied to this order.
Show child attributes
The coupon code applied to the order.
The type of discount applied to the order.
Monetary details of the discount amount.
Show child attributes
The discount amount in USD.
The discount amount in local currency.
The currency code for the discount amount.
"EUR"
The percentage discount applied via the coupon.
Custom options to be passed to the givingblock-givingblock connector.
Show child attributes
The default cryptocurrency to present at checkout. This can be used to ensure the user is presented with the same currency in both your checkout and the Giving Block checkout.
"BTC"
Custom options to be passed to the latitude-latitude connector.
Show child attributes
The promotionReference field passed to the purchase API.
128"promotion-123"
Custom options to be passed to the latitude-latitudeds connector.
Show child attributes
The promotionReference field passed to the purchase API.
128"promotion-123"
Custom options to be passed to the mattilda-tapi connector.
Show child attributes
Defines the date at which the payment will expire if not completed. Must be provided in ISO 8601 format (YYYY-MM-DD). If not specified, it defaults to 7 days in the future from the current date.
"2030-12-01"
Custom options to be passed to the mattilda-tapifintechs connector.
Show child attributes
Defines the date at which the payment will expire if not completed. Must be provided in ISO 8601 format (YYYY-MM-DD). If not specified, it defaults to 7 days in the future from the current date.
"2030-12-01"
Custom options to be passed to the mock-card connector.
Show child attributes
Allows for mocking the merchant advice code.
When set to true, prevents retries on failed transactions.
Custom options to be passed to the nuvei-card connector.
Show child attributes
General data about the customer provided by the merchant.
255"user=123,trusted=false"
Provides additional airline data for Nuvei payments.
Custom options to be passed to the nuvei-pse connector.
Show child attributes
Customer type ("N" for persona natural, "J" for persona jurídica)
"N"
Customer’s document type
"CC"
Customer’s document number
"CC"
The bank code of the selected bank
"5432"
Custom options to be passed to the oxxo-oxxo connector.
Show child attributes
Defines a custom expiration time (unix time) after which Oxxo payment requests are cancelled
1750074293
Approval URL that will receive a charge payment method reference.
"https://example.com"
Custom options to be passed to the paypal-paypal connector.
Show child attributes
Additional Set Transaction Context Values (STC) to be sent to PayPal as part of the transaction.
Show child attributes
{ "sender_account_id": "customer-1234" }Shipping information to be passed to the PayPal API.
Show child attributes
Shipping options that the payee or merchant offers to the payer to ship or pick up their items.
10Show child attributes
A unique ID that identifies a payer-selected shipping option.
1 - 127A description that the payer sees, which helps them choose an appropriate shipping option.
1 - 127If the API request sets selected = true, it represents the shipping option that the payee or merchant expects to be pre-selected for the payer when they first view the shipping.options in the PayPal Checkout experience. Only one shipping.option can be set to selected=true.
A classification for the method of purchase fulfillment.
SHIPPING, PICKUP, PICKUP_IN_STORE, PICKUP_FROM_PERSON "SHIPPING"
The shipping cost for the selected option.
Show child attributes
{
"options": [
{
"amount": { "currency_code": "USD", "value": "10.00" },
"id": "ship_1234",
"label": "Free Shipping",
"selected": true,
"type": "SHIPPING"
}
]
}Custom options to be passed to the paypal-paypalpaylater connector.
Show child attributes
Additional Set Transaction Context Values (STC) to be sent to PayPal as part of the transaction.
Show child attributes
{ "sender_account_id": "customer-1234" }Shipping information to be passed to the PayPal API.
Show child attributes
Shipping options that the payee or merchant offers to the payer to ship or pick up their items.
10Show child attributes
A unique ID that identifies a payer-selected shipping option.
1 - 127A description that the payer sees, which helps them choose an appropriate shipping option.
1 - 127If the API request sets selected = true, it represents the shipping option that the payee or merchant expects to be pre-selected for the payer when they first view the shipping.options in the PayPal Checkout experience. Only one shipping.option can be set to selected=true.
A classification for the method of purchase fulfillment.
SHIPPING, PICKUP, PICKUP_IN_STORE, PICKUP_FROM_PERSON "SHIPPING"
The shipping cost for the selected option.
Show child attributes
The three-character ISO currency code.
The amount value, which might include a decimal portion.
1 - 32{
"options": [
{
"amount": { "currency_code": "USD", "value": "10.00" },
"id": "ship_1234",
"label": "Free Shipping",
"selected": true,
"type": "SHIPPING"
}
]
}Custom options to be passed to the powertranz-card connector.
Show child attributes
Indicates to PowerTranz whether to skip the 3DS authentication for this transaction.
true
Custom options to be passed to the stripe-card connector.
Show child attributes
Passes the error_on_requires_action option to the Stripe API. Set to true to fail the payment attempt if it transitions into requires_action. Use this parameter for simpler integrations that don't handle customer actions, such as saving cards without authentication.
true
Stripe options to support Stripe Connect
Show child attributes
The Stripe Connect account to target using the Stripe-Account header.
"act_123456"
The fee to charge the connected account.
"123"
The Stripe Connect account to target using the on_behalf_of request parameter.
"act_123456"
The Stripe Connect account to target using the transfer_data.destination request parameter.
"act_123456"
A string that identifies the payment as part of a group.
"ORDER100"
Custom options to be passed to the travelhub-card connector.
Show child attributes
A list of customData to pass to the TravelHub API.
Show child attributes
Customer company name to pass to the TravelHub API.
Custom options to be passed to the trustly-trustly connector.
Custom options to be passed to the wpay-everydaypay connector.
Show child attributes
The customer ID for the Everyday Rewards account.
The access token for the Everyday Rewards account.
The ID of the device on which the payment is occuring.
Whether the transaction should redirect post-payment
true
Custom options to be passed to the wpay-payto connector.
Show child attributes
Options to pass to the instrument resource in the Wpay PayTo API.
Show child attributes
Simulate responses for this resource.
Show child attributes
The simulation being requested. Please refer to the developer guide for a list of all available simulations.
The delay in seconds before the requested simulation is executed.
5
Options to pass to the payment resource in the Wpay PayTo API.
Show child attributes
Simulate responses for this resource.
Show child attributes
The simulation being requested. Please refer to the developer guide for a list of all available simulations.
The delay in seconds before the requested simulation is executed.
5
Options to pass to the refund resource in the Wpay PayTo API.
Show child attributes
Simulate responses for this resource.
Show child attributes
The simulation being requested. Please refer to the developer guide for a list of all available simulations.
The delay in seconds before the requested simulation is executed.
5
Successful Response
A full transaction resource.
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"
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
Was this page helpful?