All URIs are relative to https://cert.api.firstdata.com/gateway/v2
| Method | HTTP request | Description |
|---|---|---|
| order_inquiry | GET /orders/{order-id} | Retrieve the state of an order. |
| submit_secondary_transaction_from_order | POST /orders/{order-id} | Perform return or postAuth secondary transactions. |
OrderResponse order_inquiry(content_type, client_request_id, api_key, timestamp, order_id, opts)
Retrieve the state of an order.
Use this query to get the current state of an existing order.
# load the gem
require 'openapi_client'
api_instance = OpenapiClient::OrderApi.new
content_type = 'application/json' # String | Content type.
client_request_id = 'client_request_id_example' # String | A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format.
api_key = 'api_key_example' # String | Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
timestamp = 56 # Integer | Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
order_id = 'order_id_example' # String | Gateway order identifier as returned in the parameter orderId.
opts = {
message_signature: 'message_signature_example', # String | Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal.
region: 'region_example', # String | Indicates the region where the client wants the transaction to be processed. This will override the default processing region identified for the client. Available options are argentina, brazil, germany, india and northamerica. Region specific store setup and APIGEE boarding is required in order to use an alternate region for processing.
store_id: 'store_id_example' # String | An optional outlet ID for clients that support multiple stores in the same developer app.
}
begin
#Retrieve the state of an order.
result = api_instance.order_inquiry(content_type, client_request_id, api_key, timestamp, order_id, opts)
p result
rescue OpenapiClient::ApiError => e
puts "Exception when calling OrderApi->order_inquiry: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| content_type | String | Content type. | [default to 'application/json'] |
| client_request_id | String | A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format. | |
| api_key | String | Key given to merchant after boarding associating their requests with the appropriate app in Apigee. | |
| timestamp | Integer | Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins). | |
| order_id | String | Gateway order identifier as returned in the parameter orderId. | |
| message_signature | String | Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal. | [optional] |
| region | String | Indicates the region where the client wants the transaction to be processed. This will override the default processing region identified for the client. Available options are argentina, brazil, germany, india and northamerica. Region specific store setup and APIGEE boarding is required in order to use an alternate region for processing. | [optional] |
| store_id | String | An optional outlet ID for clients that support multiple stores in the same developer app. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
TransactionResponse submit_secondary_transaction_from_order(content_type, client_request_id, api_key, timestamp, order_id, secondary_transaction, opts)
Perform return or postAuth secondary transactions.
Use this to perform a postAuth or return secondary transaction using order ID. Partial postAuths and returns are allowed.
# load the gem
require 'openapi_client'
api_instance = OpenapiClient::OrderApi.new
content_type = 'application/json' # String | Content type.
client_request_id = 'client_request_id_example' # String | A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format.
api_key = 'api_key_example' # String | Key given to merchant after boarding associating their requests with the appropriate app in Apigee.
timestamp = 56 # Integer | Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
order_id = 'order_id_example' # String | Gateway order identifier as returned in the parameter orderId.
secondary_transaction = OpenapiClient::SecondaryTransaction.new # SecondaryTransaction | Accepted request types: PostAuthTransaction, VoidTransaction, VoidPreAuthTransactions, ReturnTransaction, AchPostAuthTransaction, AchVoidTransaction, AchReturnTransaction and PreAuthSecondaryTransaction.
opts = {
message_signature: 'message_signature_example', # String | Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal.
region: 'region_example' # String | Indicates the region where the client wants the transaction to be processed. This will override the default processing region identified for the client. Available options are argentina, brazil, germany, india and northamerica. Region specific store setup and APIGEE boarding is required in order to use an alternate region for processing.
}
begin
#Perform return or postAuth secondary transactions.
result = api_instance.submit_secondary_transaction_from_order(content_type, client_request_id, api_key, timestamp, order_id, secondary_transaction, opts)
p result
rescue OpenapiClient::ApiError => e
puts "Exception when calling OrderApi->submit_secondary_transaction_from_order: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| content_type | String | Content type. | [default to 'application/json'] |
| client_request_id | String | A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format. | |
| api_key | String | Key given to merchant after boarding associating their requests with the appropriate app in Apigee. | |
| timestamp | Integer | Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins). | |
| order_id | String | Gateway order identifier as returned in the parameter orderId. | |
| secondary_transaction | SecondaryTransaction | Accepted request types: PostAuthTransaction, VoidTransaction, VoidPreAuthTransactions, ReturnTransaction, AchPostAuthTransaction, AchVoidTransaction, AchReturnTransaction and PreAuthSecondaryTransaction. | |
| message_signature | String | Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal. | [optional] |
| region | String | Indicates the region where the client wants the transaction to be processed. This will override the default processing region identified for the client. Available options are argentina, brazil, germany, india and northamerica. Region specific store setup and APIGEE boarding is required in order to use an alternate region for processing. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json