api.qa-pluto.batchservice.trevipay.app
Open in
urlscan Pro
35.172.143.216
Public Scan
URL:
https://api.qa-pluto.batchservice.trevipay.app/
Submission: On July 03 via automatic, source certstream-suspicious — Scanned from DE
Submission: On July 03 via automatic, source certstream-suspicious — Scanned from DE
Form analysis
0 forms found in the DOMText Content
* Batch * Batch * getGet batch collection * getGet batch * Batch Detail * getGet batch detail collection * getGet batch detail * Batch Detail History * getGet batch detail history collection * getGet batch detail history * Batch Detail Log * getGet batch detail log collection * getGet batch detail log * Processing Report * Processing Report * getGet processing report * Client * Client Program Customers * getGet program customer collection * postCreate client program customer * delDelete client program customer * getGet client program customer * postCreate client program customer with ID * putUpdate client program customer * Client Program Seller Contacts * getGet client program seller contact collection * getGet client program seller contact * Client Program Sellers * getGet client program seller collection * postCreate client program seller * getGet client program seller * postCreate client program seller with ID * putUpdate client program seller * Client Programs * getGet client program collection * postCreate client program * delDelete client program * getGet client program * postCreate client program with ID * putUpdate client program * delDelete client program seller * Client Report Schedule * getGet client program report schedule collections * postCreate client program report schedule * delDelete client program report * getGet client program report schedule * putUpdate client program report * Clients * getGet client collection * postCreate client * delDelete client * getGet client * postCreate client with ID * putUpdate client * Seller * Seller Report Schedule * getGet client program seller report schedule collections * postCreate client program seller report schedule * delDelete client program seller report * getGet client program seller report schedule * putUpdate client program seller report * Sellers * getGet seller collection * getGet seller * Customer * Customers * getGet customer collection * getGet customer * File * File * getGet file collection * postCreate file * getGet file * putUpdate file * File Batch * getGet file batch collection * getGet file batch * putUpdate file batch * postCancel Batch * postCancel Batch Drafts * postConfirm Batch Drafts * getDownload file batch with errors CSV * postUpdate file batch with errors CSV * postRetry Batch * File Batch Detail * getGet file batch detail collection * getGet file batch detail * putUpdate file batch detail * File Batch Detail History * getGet file batch detail history collection * getGet file batch detail history * File Batch Detail Log * getGet file batch detail log collection * getGet file batch detail log * Program * Programs * getGet program collection * getGet program * Report * Report * getGet report collection * getGet report * Report Schedule * Report Schedule * getGet report schedule collection * getGet report schedule * Seller Contact * Seller Contacts * getGet seller contact collection * getGet seller contact * Settlement * Settlement * postUpload a settlement file * SQS Message * SQS Message * getGet SQS Message collection * getGet SQS Message API docs by Redocly BATCH DOCS (1.0) Download OpenAPI specification:Download BUILD INFORMATION Branch: BCS-110 SHA: 6f2c4762 BATCH GET BATCH COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_id string <uuid> Example: batch_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID correlation_id string [ 1 .. 1024 ] characters Example: correlation_id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The correlation ID of the API request that generated this resource. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. seller_name string [ 1 .. 1024 ] characters Examples: seller_name=Apruve seller_name=BestBuy seller_name=Lenovo The name of the seller. file_id string <uuid> Example: file_id=d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID xml_data string non-empty The XML data for the batch. batch_number string [ 1 .. 20 ] characters The seller's batch number in the seller's format status string Enum: "Unprocessed" "Processed" "Error" Batch status batch_detail_count number >= 0 The number of batch details associated with this batch. batch_detail_unprocessed_count number >= 0 The number of batch details with a status of Unprocessed or Retry associated with this batch. batch_detail_error_count number >= 0 The number of batch details with a status of Error associated with this batch. batch_detail_draft_count number >= 0 The number of batch details that has draft data. batch_detail_cancelled_count number >= 0 The number of batch details with a status of Cancelled associated with this batch. processed_at string <date-time> Date/time the resource was processed. error_log string non-empty The error log is populated when the resource has a processing status of 'Error'. The log may hint at the cause of failure. error_at string <date-time> Date/time the resource failed processing. user_updated_at string <date-time> Examples: user_updated_at=2019-01-01 user_updated_at=2019-01-01T23:59:59Z user_updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated through public API. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. user_updated_by string Examples: user_updated_by=Lauren Brandon user_updated_by=ReadOnlyAPIKey The user name or API key the resource was last updated through public API. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/batches https://api.qa-pluto.batchservice.trevipay.app/v1/batches RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_name": "Apruve", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "xml_data": "string", * "batch_number": "string", * "batch_detail_count": 0, * "batch_detail_unprocessed_count": 0, * "batch_detail_error_count": 0, * "batch_detail_draft_count": 0, * "batch_detail_cancelled_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon" } ] GET BATCH PATH PARAMETERS batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/batches/:batch_id https://api.qa-pluto.batchservice.trevipay.app/v1/batches/:batch_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_name": "Apruve", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "xml_data": "string", * "batch_number": "string", * "batch_detail_count": 0, * "batch_detail_unprocessed_count": 0, * "batch_detail_error_count": 0, * "batch_detail_draft_count": 0, * "batch_detail_cancelled_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon" } BATCH DETAIL GET BATCH DETAIL COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID correlation_id string [ 1 .. 1024 ] characters Example: correlation_id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The correlation ID of the API request that generated this resource. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. customer_id string <uuid> Example: customer_id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID customer_name string [ 1 .. 1024 ] characters Optional name for the customer seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. charge_id string <uuid> Example: charge_id=d1363171-4587-4f8d-b276-977691e4a925 Unique 3Rivers charge ID file_id string <uuid> Example: file_id=d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id string <uuid> Example: batch_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_number string [ 1 .. 20 ] characters The seller's batch number in the seller's format order_number string [ 1 .. 824 ] characters The seller's order number in the seller's format transaction_type string Enum: "Charge" "Refund" The type of transaction xml_data string non-empty The XML data for the batch detail. request_data string non-empty The 3Rivers Charge or Refund API request. draft_request_data string non-empty The draft 3Rivers Charge or Refund API request. response_data string non-empty 3Rivers response data. amount integer The batch detail currency amount. currency string non-empty The batch detail currency. status string Enum: "Unprocessed" "Retry" "Processed" "Error" "Cancelled" Batch detail status processed_at string <date-time> Date/time the resource was processed. error_code string non-empty 3Rivers API or BCS internal error code. error_description string non-empty 3Rivers API or BCS internal error message. error_at string <date-time> Date/time the resource failed processing. retry_count integer >= 0 The number of times processing of the resource has failed. user_updated_at string <date-time> Examples: user_updated_at=2019-01-01 user_updated_at=2019-01-01T23:59:59Z user_updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated through public API. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. user_updated_by string Examples: user_updated_by=Lauren Brandon user_updated_by=ReadOnlyAPIKey The user name or API key the resource was last updated through public API. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/batchdetails https://api.qa-pluto.batchservice.trevipay.app/v1/batchdetails RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "customer_name": "string", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_number": "string", * "order_number": "string", * "transaction_type": "Charge", * "xml_data": "string", * "request_data": "string", * "draft_request_data": "string", * "response_data": "string", * "amount": 0, * "currency": "string", * "retry_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_code": "string", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET BATCH DETAIL HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/batchdetails/:batch_detail_id https://api.qa-pluto.batchservice.trevipay.app/v1/batchdetails/:batch_detail_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "customer_name": "string", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_number": "string", * "order_number": "string", * "transaction_type": "Charge", * "xml_data": "string", * "request_data": "string", * "draft_request_data": "string", * "response_data": "string", * "amount": 0, * "currency": "string", * "retry_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_code": "string", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } BATCH DETAIL HISTORY GET BATCH DETAIL HISTORY COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail history resource ID batch_detail_id string <uuid> Example: batch_detail_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID correlation_id string [ 1 .. 1024 ] characters Example: correlation_id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The correlation ID of the API request that generated this resource. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. customer_id string <uuid> Example: customer_id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. charge_id string <uuid> Example: charge_id=d1363171-4587-4f8d-b276-977691e4a925 Unique 3Rivers charge ID file_id string <uuid> Example: file_id=d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id string <uuid> Example: batch_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_number string [ 1 .. 20 ] characters The seller's batch number in the seller's format order_number string [ 1 .. 824 ] characters The seller's order number in the seller's format transaction_type string Enum: "Charge" "Refund" The type of transaction xml_data string non-empty The XML data for the batch detail. request_data string non-empty The 3Rivers Charge or Refund API request. draft_request_data string non-empty The draft 3Rivers Charge or Refund API request. response_data string non-empty 3Rivers response data. amount integer The batch detail currency amount. currency string non-empty The batch detail currency. status string Enum: "Unprocessed" "Retry" "Processed" "Error" "Cancelled" Batch detail status processed_at string <date-time> Date/time the resource was processed. error_code string non-empty 3Rivers API or BCS internal error code. error_log string non-empty The error log is populated when the resource has a processing status of 'Error'. The log may hint at the cause of failure. error_at string <date-time> Date/time the resource failed processing. retry_count integer >= 0 The number of times processing of the resource has failed. user_updated_at string <date-time> Examples: user_updated_at=2019-01-01 user_updated_at=2019-01-01T23:59:59Z user_updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated through public API. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. user_updated_by string Examples: user_updated_by=Lauren Brandon user_updated_by=ReadOnlyAPIKey The user name or API key the resource was last updated through public API. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/batchdetailhistory https://api.qa-pluto.batchservice.trevipay.app/v1/batchdetailhistory RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_detail_id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_number": "string", * "order_number": "string", * "transaction_type": "Charge", * "xml_data": "string", * "request_data": "string", * "draft_request_data": "string", * "response_data": "string", * "amount": 0, * "currency": "string", * "retry_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_code": "string", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET BATCH DETAIL HISTORY HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/batchdetailhistory/:batch_detail_history_id https://api.qa-pluto.batchservice.trevipay.app/v1/batchdetailhistory/:batch_detail_history_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_detail_id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_number": "string", * "order_number": "string", * "transaction_type": "Charge", * "xml_data": "string", * "request_data": "string", * "draft_request_data": "string", * "response_data": "string", * "amount": 0, * "currency": "string", * "retry_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_code": "string", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } BATCH DETAIL LOG GET BATCH DETAIL LOG COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail log resource ID batch_detail_log_id string <uuid> Example: batch_detail_log_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail log resource ID correlation_id string [ 1 .. 1024 ] characters Example: correlation_id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The correlation ID of the API request that generated this resource. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. customer_id string <uuid> Example: customer_id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. charge_id string <uuid> Example: charge_id=d1363171-4587-4f8d-b276-977691e4a925 Unique 3Rivers charge ID file_id string <uuid> Example: file_id=d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id string <uuid> Example: batch_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_detail_id string <uuid> Example: batch_detail_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID request_data string non-empty 3Rivers request data. response_data string non-empty 3Rivers response data. response_status number [ 100 .. 599 ] 3Rivers HTTP response status code. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/batchdetaillogs https://api.qa-pluto.batchservice.trevipay.app/v1/batchdetaillogs RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_detail_id": "d1363171-4587-4f8d-b276-977691e4a925", * "request_data": "string", * "response_data": "string", * "response_status": 100, * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET BATCH DETAIL LOG PATH PARAMETERS batch_detail_log_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail log resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/batchdetaillogs/:batch_detail_log_id https://api.qa-pluto.batchservice.trevipay.app/v1/batchdetaillogs/:batch_detail_log_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_detail_id": "d1363171-4587-4f8d-b276-977691e4a925", * "request_data": "string", * "response_data": "string", * "response_status": 100, * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } PROCESSING REPORT GET PROCESSING REPORT QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page. This is only supported for JSON-formatted processing reports. page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. This is only supported for JSON-formatted processing reports. file_id string <uuid> Example: file_id=d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id string <uuid> Example: batch_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_number string [ 1 .. 20 ] characters The seller's batch number in the seller's format batch_detail_id string <uuid> Example: batch_detail_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. seller_name string [ 1 .. 1024 ] characters Examples: seller_name=Apruve seller_name=BestBuy seller_name=Lenovo The name of the seller. customer_id string <uuid> Example: customer_id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID customer_name string [ 1 .. 1024 ] characters Optional name for the customer buyer_id string <uuid> Example: buyer_id=d1363171-4587-4f8d-b276-977691e4a925 Unique 3Rivers buyer ID id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique 3Rivers charge or refund ID type string Enum: "Charge" "Refund" The type of transaction amount string <int> [ 1 .. 900000000000000 ] The total amount of the charge or refund. It includes the sum of all details subtotal + shipping amount + shipping tax amount - shipping discount amount + foreign exchange fee. status string Enum: "Created" "Pending" "Rejected" "Error" Resolved processing report 3Rivers status. transaction_time string <date-time> Date/time the charge or refund was successfully processed through the 3Rivers Charge or Refund API. order_number string [ 1 .. 824 ] characters The seller's order number in the seller's format po_number string [ 1 .. 200 ] characters This may be required by some buyers/sellers based on their configuration. currency string^[A-Z]{3}$ Examples: currency=AUD currency=USD currency=NZD currency=EUR currency=GBP Unique ISO 4217 currency code error_code string non-empty 3Rivers API or BCS internal error code. error_description string non-empty 3Rivers API or BCS internal error message. columns string non-empty Examples: columns=transaction_time,customer_id,customer_name,id,total,order_number,po_number,seller_id,seller_name,type,currency,status columns=batch_number,seller_id,seller_name,customer_id,customer_name,buyer_id,id,type,total,status,transaction_time,order_number,po_number,currency,error_code,error_description columns=buyer_id columns=customer_id,customer_name Comma-separated column names to be displayed in the CSV-formatted processing report. Used only for CSV-formatted processing reports. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Datetime of when BCS initially received the settlement file, but before the charge was created in 3Rivers. The :gte and :lte operators must be used to specify the date range for PDF-formatted processing reports HEADER PARAMETERS Accept string (Processing Report Accept Request Header) Enum: "application/json" "application/pdf" "text/csv" This can be used to control the response format. The default response format is JSON. Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/batchreports https://api.qa-pluto.batchservice.trevipay.app/v1/batchreports RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_number": "string", * "batch_detail_id": "d1363171-4587-4f8d-b276-977691e4a925", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_name": "Apruve", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "customer_name": "string", * "buyer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "type": "Charge", * "amount": "string", * "status": "Created", * "transaction_time": "2019-08-24T14:15:22Z", * "order_number": "string", * "po_number": "string", * "currency": "AUD", * "error_code": "string", * "error_description": "string", * "created_at": "2019-01-01" } ] CLIENT PROGRAM CUSTOMERS GET PROGRAM CUSTOMER COLLECTION PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID customer_id string <uuid> Example: customer_id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. name string [ 1 .. 1024 ] characters Optional name for the customer created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. processed_message_ts string <date-time> Examples: processed_message_ts=2019-01-01T23:59:59.999Z The timestamp of the message that created or updated this resource. This is used to ignore duplicate messages, and ensure that messages are not processed out-of-order HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id/customers https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/customers RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "string", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "processed_message_ts": "2019-01-01T23:59:59.999Z" } ] CREATE CLIENT PROGRAM CUSTOMER PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name string [ 1 .. 1024 ] characters Optional name for the customer property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/clients/:client_id/programs/:program_id/customers https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/customers REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "string" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "string", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "processed_message_ts": "2019-01-01T23:59:59.999Z" } DELETE CLIENT PROGRAM CUSTOMER PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. customer_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. delete/v1/clients/:client_id/programs/:program_id/customers/:customer_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/customers/:customer_id RESPONSE SAMPLES * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "code": "invalid_customer_countries", * "message": "Request body failed JSON schema validation.", * "validationErrors": [ ] } ] GET CLIENT PROGRAM CUSTOMER PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. customer_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id/customers/:customer_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/customers/:customer_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "string", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "processed_message_ts": "2019-01-01T23:59:59.999Z" } CREATE CLIENT PROGRAM CUSTOMER WITH ID PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. customer_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name string [ 1 .. 1024 ] characters Optional name for the customer property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/clients/:client_id/programs/:program_id/customers/:customer_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/customers/:customer_id REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "string" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "string", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "processed_message_ts": "2019-01-01T23:59:59.999Z" } UPDATE CLIENT PROGRAM CUSTOMER PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. customer_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name string [ 1 .. 1024 ] characters Optional name for the customer property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. put/v1/clients/:client_id/programs/:program_id/customers/:customer_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/customers/:customer_id REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "string" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "string", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "processed_message_ts": "2019-01-01T23:59:59.999Z" } CLIENT PROGRAM SELLER CONTACTS GET CLIENT PROGRAM SELLER CONTACT COLLECTION PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. id string <uuid> Example: id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique batch service seller contact resource ID. seller_contact_id string <uuid> Example: seller_contact_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique batch service seller contact resource ID. name string [ 1 .. 1024 ] characters Examples: name=Apruve name=BestBuy name=Lenovo The name of the seller contact. email string Examples: email=systems-bestbuy@multiservice.com Seller physical contact address email address. country string Examples: country=US Seller physical contact address country. state string Examples: state=TX Seller physical contact address state. city string Examples: city=Farmers Branch Seller physical contact address city. street string Examples: street=4255 Lyndon B Johnson Fwy Seller physical contact address street. post_code string Examples: post_code=90210 Seller physical contact address postal code. processed_message_ts string <date-time> Examples: processed_message_ts=2019-01-01T23:59:59.999Z The timestamp of the message that created or updated this resource. This is used to ignore duplicate messages, and ensure that messages are not processed out-of-order created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/sellercontacts https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/sellercontacts RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "email": "systems-bestbuy@multiservice.com", * "country": "US", * "state": "TX", * "city": "Farmers Branch", * "street": "4255 Lyndon B Johnson Fwy", * "post_code": "90210", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET CLIENT PROGRAM SELLER CONTACT PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. seller_contact_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique batch service seller contact resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/sellercontacts/:seller_contact_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/sellercontacts/:seller_contact_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "email": "systems-bestbuy@multiservice.com", * "country": "US", * "state": "TX", * "city": "Farmers Branch", * "street": "4255 Lyndon B Johnson Fwy", * "post_code": "90210", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } CLIENT PROGRAM SELLERS GET CLIENT PROGRAM SELLER COLLECTION PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. id string <uuid> Example: id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. alternate_seller_id string [ 1 .. 50 ] characters Example: alternate_seller_id=3c87bd2b An alternate version of the seller ID. Can be used by systems that support different seller ID formats other than a uuid name string [ 1 .. 1024 ] characters Examples: name=Apruve name=BestBuy name=Lenovo The name of the seller. processed_message_ts string <date-time> Examples: processed_message_ts=2019-01-01T23:59:59.999Z The timestamp of the message that created or updated this resource. This is used to ignore duplicate messages, and ensure that messages are not processed out-of-order created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id/sellers https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "alternate_seller_id": "3c87bd2b", * "name": "Apruve", * "status": "Created", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] CREATE CLIENT PROGRAM SELLER PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON alternate_seller_id string [ 1 .. 50 ] characters An alternate version of the seller ID. Can be used by systems that support different seller ID formats other than a uuid name required string [ 1 .. 1024 ] characters The name of the seller. property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/clients/:client_id/programs/:program_id/sellers https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers REQUEST SAMPLES * Payload Content type application/json Copy { * "alternate_seller_id": "3c87bd2b", * "name": "Apruve" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "alternate_seller_id": "3c87bd2b", * "name": "Apruve", * "status": "Created", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } GET CLIENT PROGRAM SELLER PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id/sellers/:seller_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "alternate_seller_id": "3c87bd2b", * "name": "Apruve", * "status": "Created", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } CREATE CLIENT PROGRAM SELLER WITH ID PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON alternate_seller_id string [ 1 .. 50 ] characters An alternate version of the seller ID. Can be used by systems that support different seller ID formats other than a uuid name required string [ 1 .. 1024 ] characters The name of the seller. property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/clients/:client_id/programs/:program_id/sellers/:seller_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id REQUEST SAMPLES * Payload Content type application/json Copy { * "alternate_seller_id": "3c87bd2b", * "name": "Apruve" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "alternate_seller_id": "3c87bd2b", * "name": "Apruve", * "status": "Created", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } UPDATE CLIENT PROGRAM SELLER PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON alternate_seller_id string [ 1 .. 50 ] characters An alternate version of the seller ID. Can be used by systems that support different seller ID formats other than a uuid name required string [ 1 .. 1024 ] characters The name of the seller. property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. put/v1/clients/:client_id/programs/:program_id/sellers/:seller_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id REQUEST SAMPLES * Payload Content type application/json Copy { * "alternate_seller_id": "3c87bd2b", * "name": "Apruve" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "alternate_seller_id": "3c87bd2b", * "name": "Apruve", * "status": "Created", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } CLIENT PROGRAMS GET CLIENT PROGRAM COLLECTION PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. id string <uuid> Example: id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. name string [ 1 .. 1024 ] characters Examples: name=Apruve name=BestBuy name=Lenovo The name of the program. status any Enum: "Created" "Active" "Inactive" "Terminated" "Archived" reply_to_email string <= 200 characters support_email string <= 200 characters sender_email string <= 200 characters processed_message_ts string <date-time> Examples: processed_message_ts=2019-01-01T23:59:59.999Z The timestamp of the message that created or updated this resource. This is used to ignore duplicate messages, and ensure that messages are not processed out-of-order created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "status": "Created", * "reply_to_email": "пошта@укр.нет", * "support_email": "пошта@укр.нет", * "sender_email": "пошта@укр.нет", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] CREATE CLIENT PROGRAM PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name required string [ 1 .. 1024 ] characters The name of the program. status required any Enum: "Created" "Active" "Inactive" "Terminated" "Archived" reply_to_email required string <idn-email> <= 200 characters support_email required string <idn-email> <= 200 characters sender_email required string <idn-email> <= 200 characters property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/clients/:client_id/programs https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "Apruve", * "status": "Created", * "reply_to_email": "пошта@укр.нет", * "support_email": "пошта@укр.нет", * "sender_email": "пошта@укр.нет" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "status": "Created", * "reply_to_email": "пошта@укр.нет", * "support_email": "пошта@укр.нет", * "sender_email": "пошта@укр.нет", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } DELETE CLIENT PROGRAM PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. delete/v1/clients/:client_id/programs/:program_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id RESPONSE SAMPLES * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "code": "invalid_customer_countries", * "message": "Request body failed JSON schema validation.", * "validationErrors": [ ] } ] GET CLIENT PROGRAM PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "status": "Created", * "reply_to_email": "пошта@укр.нет", * "support_email": "пошта@укр.нет", * "sender_email": "пошта@укр.нет", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } CREATE CLIENT PROGRAM WITH ID PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name required string [ 1 .. 1024 ] characters The name of the program. status required any Enum: "Created" "Active" "Inactive" "Terminated" "Archived" reply_to_email required string <idn-email> <= 200 characters support_email required string <idn-email> <= 200 characters sender_email required string <idn-email> <= 200 characters property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/clients/:client_id/programs/:program_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "Apruve", * "status": "Created", * "reply_to_email": "пошта@укр.нет", * "support_email": "пошта@укр.нет", * "sender_email": "пошта@укр.нет" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "status": "Created", * "reply_to_email": "пошта@укр.нет", * "support_email": "пошта@укр.нет", * "sender_email": "пошта@укр.нет", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } UPDATE CLIENT PROGRAM PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name required string [ 1 .. 1024 ] characters The name of the program. status required any Enum: "Created" "Active" "Inactive" "Terminated" "Archived" reply_to_email required string <idn-email> <= 200 characters support_email required string <idn-email> <= 200 characters sender_email required string <idn-email> <= 200 characters property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. put/v1/clients/:client_id/programs/:program_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "Apruve", * "status": "Created", * "reply_to_email": "пошта@укр.нет", * "support_email": "пошта@укр.нет", * "sender_email": "пошта@укр.нет" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "status": "Created", * "reply_to_email": "пошта@укр.нет", * "support_email": "пошта@укр.нет", * "sender_email": "пошта@укр.нет", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } DELETE CLIENT PROGRAM SELLER PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. delete/v1/clients/:client_id/programs/:program_id/sellers/:seller_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id RESPONSE SAMPLES * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "code": "invalid_customer_countries", * "message": "Request body failed JSON schema validation.", * "validationErrors": [ ] } ] CLIENT REPORT SCHEDULE GET CLIENT PROGRAM REPORT SCHEDULE COLLECTIONS PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id/reportschedules https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/reportschedules RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_scope": "Client", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string", * "last_scheduled_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] CREATE CLIENT PROGRAM REPORT SCHEDULE PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON report_id required string <uuid> Unique report resource ID. schedule_tz required string The timezone the report schedule should use when determining when the report should be scheduled and the data that is included in the report. schedule_frequency required any Enum: "Daily" "Weekly" "Monthly" The frequency the report is able to be run. A report cannot be scheduled for a frequency the report does not support. schedule_week_day any Enum: "Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" When the schedule frequency is weekly, this defines the day of the week the report will be scheduled. recipient_emails string The comma separated list of email addresses the resulting report should be emailed to. property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/clients/:client_id/programs/:program_id/reportschedules https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/reportschedules REQUEST SAMPLES * Payload Content type application/json Copy { * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_scope": "Client", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string", * "last_scheduled_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } DELETE CLIENT PROGRAM REPORT PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. report_schedule_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report schedule resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. delete/v1/clients/:client_id/programs/:program_id/reportschedules/:report_schedule_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/reportschedules/:report_schedule_id RESPONSE SAMPLES * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "code": "invalid_customer_countries", * "message": "Request body failed JSON schema validation.", * "validationErrors": [ ] } ] GET CLIENT PROGRAM REPORT SCHEDULE PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. report_schedule_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report schedule resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id/reportschedules/:report_schedule_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/reportschedules/:report_schedule_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_scope": "Client", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string", * "last_scheduled_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } UPDATE CLIENT PROGRAM REPORT PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. report_schedule_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report schedule resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON report_id required string <uuid> Unique report resource ID. schedule_tz required string The timezone the report schedule should use when determining when the report should be scheduled and the data that is included in the report. schedule_frequency required any Enum: "Daily" "Weekly" "Monthly" The frequency the report is able to be run. A report cannot be scheduled for a frequency the report does not support. schedule_week_day any Enum: "Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" When the schedule frequency is weekly, this defines the day of the week the report will be scheduled. recipient_emails string The comma separated list of email addresses the resulting report should be emailed to. property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. put/v1/clients/:client_id/programs/:program_id/reportschedules/:report_schedule_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/reportschedules/:report_schedule_id REQUEST SAMPLES * Payload Content type application/json Copy { * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_scope": "Client", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string", * "last_scheduled_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } CLIENTS GET CLIENT COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. name string [ 1 .. 1024 ] characters Examples: name=Apruve name=BestBuy name=Lenovo The name of the client. processed_message_ts string <date-time> Examples: processed_message_ts=2019-01-01T23:59:59.999Z The timestamp of the message that created or updated this resource. This is used to ignore duplicate messages, and ensure that messages are not processed out-of-order created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients https://api.qa-pluto.batchservice.trevipay.app/v1/clients RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] CREATE CLIENT HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name required string [ 1 .. 1024 ] characters The name of the client. property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/clients https://api.qa-pluto.batchservice.trevipay.app/v1/clients REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "Apruve" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } DELETE CLIENT PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. delete/v1/clients/:client_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id RESPONSE SAMPLES * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "code": "invalid_customer_countries", * "message": "Request body failed JSON schema validation.", * "validationErrors": [ ] } ] GET CLIENT PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } CREATE CLIENT WITH ID PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name required string [ 1 .. 1024 ] characters The name of the client. property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/clients/:client_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "Apruve" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } UPDATE CLIENT PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name required string [ 1 .. 1024 ] characters The name of the client. property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. put/v1/clients/:client_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "Apruve" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } SELLER REPORT SCHEDULE GET CLIENT PROGRAM SELLER REPORT SCHEDULE COLLECTIONS PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/reportschedules https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/reportschedules RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_scope": "Client", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string", * "last_scheduled_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] CREATE CLIENT PROGRAM SELLER REPORT SCHEDULE PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON report_id required string <uuid> Unique report resource ID. schedule_tz required string The timezone the report schedule should use when determining when the report should be scheduled and the data that is included in the report. schedule_frequency required any Enum: "Daily" "Weekly" "Monthly" The frequency the report is able to be run. A report cannot be scheduled for a frequency the report does not support. schedule_week_day any Enum: "Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" When the schedule frequency is weekly, this defines the day of the week the report will be scheduled. recipient_emails string The comma separated list of email addresses the resulting report should be emailed to. property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/reportschedules https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/reportschedules REQUEST SAMPLES * Payload Content type application/json Copy { * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_scope": "Client", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string", * "last_scheduled_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } DELETE CLIENT PROGRAM SELLER REPORT PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. report_schedule_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report schedule resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. delete/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/reportschedules/:report_schedule_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/reportschedules/:report_schedule_id RESPONSE SAMPLES * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "code": "invalid_customer_countries", * "message": "Request body failed JSON schema validation.", * "validationErrors": [ ] } ] GET CLIENT PROGRAM SELLER REPORT SCHEDULE PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. report_schedule_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report schedule resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/reportschedules/:report_schedule_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/reportschedules/:report_schedule_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_scope": "Client", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string", * "last_scheduled_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } UPDATE CLIENT PROGRAM SELLER REPORT PATH PARAMETERS client_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. report_schedule_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report schedule resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON report_id required string <uuid> Unique report resource ID. schedule_tz required string The timezone the report schedule should use when determining when the report should be scheduled and the data that is included in the report. schedule_frequency required any Enum: "Daily" "Weekly" "Monthly" The frequency the report is able to be run. A report cannot be scheduled for a frequency the report does not support. schedule_week_day any Enum: "Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" When the schedule frequency is weekly, this defines the day of the week the report will be scheduled. recipient_emails string The comma separated list of email addresses the resulting report should be emailed to. property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. put/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/reportschedules/:report_schedule_id https://api.qa-pluto.batchservice.trevipay.app/v1/clients/:client_id/programs/:program_id/sellers/:seller_id/reportschedules/:report_schedule_id REQUEST SAMPLES * Payload Content type application/json Copy { * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_scope": "Client", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string", * "last_scheduled_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } SELLERS GET SELLER COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. id string <uuid> Example: id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. alternate_seller_id string [ 1 .. 50 ] characters Example: alternate_seller_id=3c87bd2b An alternate version of the seller ID. Can be used by systems that support different seller ID formats other than a uuid name string [ 1 .. 1024 ] characters Examples: name=Apruve name=BestBuy name=Lenovo The name of the seller. processed_message_ts string <date-time> Examples: processed_message_ts=2019-01-01T23:59:59.999Z The timestamp of the message that created or updated this resource. This is used to ignore duplicate messages, and ensure that messages are not processed out-of-order created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/sellers https://api.qa-pluto.batchservice.trevipay.app/v1/sellers RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "alternate_seller_id": "3c87bd2b", * "name": "Apruve", * "status": "Created", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET SELLER PATH PARAMETERS seller_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/sellers/:seller_id https://api.qa-pluto.batchservice.trevipay.app/v1/sellers/:seller_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "alternate_seller_id": "3c87bd2b", * "name": "Apruve", * "status": "Created", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } CUSTOMERS GET CUSTOMER COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID customer_id string <uuid> Example: customer_id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. name string [ 1 .. 1024 ] characters Optional name for the customer created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. processed_message_ts string <date-time> Examples: processed_message_ts=2019-01-01T23:59:59.999Z The timestamp of the message that created or updated this resource. This is used to ignore duplicate messages, and ensure that messages are not processed out-of-order HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/customers https://api.qa-pluto.batchservice.trevipay.app/v1/customers RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "string", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "processed_message_ts": "2019-01-01T23:59:59.999Z" } ] GET CUSTOMER PATH PARAMETERS customer_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/customers/:customer_id https://api.qa-pluto.batchservice.trevipay.app/v1/customers/:customer_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "string", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "processed_message_ts": "2019-01-01T23:59:59.999Z" } FILE GET FILE COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID correlation_id string [ 1 .. 1024 ] characters Example: correlation_id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The correlation ID of the API request that generated this resource. name string non-empty Unique name of the file status string Enum: "Stored" "Processing" "Processed" "Error" The status of the file. processed_at string <date-time> Date/time the resource was processed. error_log string non-empty The error log is populated when the resource has a processing status of 'Error'. The log may hint at the cause of failure. error_at string <date-time> Date/time the resource failed processing. retry_count integer >= 0 The number of times processing of the resource has failed. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files https://api.qa-pluto.batchservice.trevipay.app/v1/files RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "name": "string", * "status": "Stored", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "retry_count": 0, * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] CREATE FILE HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name required string non-empty Unique name of the file property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/files https://api.qa-pluto.batchservice.trevipay.app/v1/files REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "string" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "name": "string", * "status": "Stored", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "retry_count": 0, * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } GET FILE HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files/:file_id https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "name": "string", * "status": "Stored", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "retry_count": 0, * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } UPDATE FILE HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON name required string non-empty Unique name of the file property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. put/v1/files/:file_id https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id REQUEST SAMPLES * Payload Content type application/json Copy { * "name": "string" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "name": "string", * "status": "Stored", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "retry_count": 0, * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } FILE BATCH GET FILE BATCH COLLECTION PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_id string <uuid> Example: batch_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID correlation_id string [ 1 .. 1024 ] characters Example: correlation_id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The correlation ID of the API request that generated this resource. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. seller_name string [ 1 .. 1024 ] characters Examples: seller_name=Apruve seller_name=BestBuy seller_name=Lenovo The name of the seller. file_id string <uuid> Example: file_id=d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID xml_data string non-empty The XML data for the batch. batch_number string [ 1 .. 20 ] characters The seller's batch number in the seller's format status string Enum: "Unprocessed" "Processed" "Error" Batch status batch_detail_count number >= 0 The number of batch details associated with this batch. batch_detail_unprocessed_count number >= 0 The number of batch details with a status of Unprocessed or Retry associated with this batch. batch_detail_error_count number >= 0 The number of batch details with a status of Error associated with this batch. batch_detail_draft_count number >= 0 The number of batch details that has draft data. batch_detail_cancelled_count number >= 0 The number of batch details with a status of Cancelled associated with this batch. processed_at string <date-time> Date/time the resource was processed. error_log string non-empty The error log is populated when the resource has a processing status of 'Error'. The log may hint at the cause of failure. error_at string <date-time> Date/time the resource failed processing. user_updated_at string <date-time> Examples: user_updated_at=2019-01-01 user_updated_at=2019-01-01T23:59:59Z user_updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated through public API. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. user_updated_by string Examples: user_updated_by=Lauren Brandon user_updated_by=ReadOnlyAPIKey The user name or API key the resource was last updated through public API. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files/:file_id/batches https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_name": "Apruve", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "xml_data": "string", * "batch_number": "string", * "batch_detail_count": 0, * "batch_detail_unprocessed_count": 0, * "batch_detail_error_count": 0, * "batch_detail_draft_count": 0, * "batch_detail_cancelled_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon" } ] GET FILE BATCH PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files/:file_id/batches/:batch_id https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_name": "Apruve", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "xml_data": "string", * "batch_number": "string", * "batch_detail_count": 0, * "batch_detail_unprocessed_count": 0, * "batch_detail_error_count": 0, * "batch_detail_draft_count": 0, * "batch_detail_cancelled_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon" } UPDATE FILE BATCH PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. REQUEST BODY SCHEMA: APPLICATION/JSON status required string Value: "Unprocessed" Batch status property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. put/v1/files/:file_id/batches/:batch_id https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id REQUEST SAMPLES * Payload Content type application/json Copy { * "status": "Unprocessed" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_name": "Apruve", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "xml_data": "string", * "batch_number": "string", * "batch_detail_count": 0, * "batch_detail_unprocessed_count": 0, * "batch_detail_error_count": 0, * "batch_detail_draft_count": 0, * "batch_detail_cancelled_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon" } CANCEL BATCH HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON batch_detail_ids Array of strings <uuid> >= 0 items [ items <uuid > ] List of batch detail ids that needs to be processed property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/files/:file_id/batches/:batch_id/cancel https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/cancel REQUEST SAMPLES * Payload Content type application/json Copy Expand all Collapse all { * "batch_detail_ids": [ * "d1363171-4587-4f8d-b276-977691e4a925" ] } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_name": "Apruve", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "xml_data": "string", * "batch_number": "string", * "batch_detail_count": 0, * "batch_detail_unprocessed_count": 0, * "batch_detail_error_count": 0, * "batch_detail_draft_count": 0, * "batch_detail_cancelled_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon" } CANCEL BATCH DRAFTS HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON batch_detail_ids Array of strings <uuid> >= 0 items [ items <uuid > ] List of batch detail ids that needs to be processed property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/files/:file_id/batches/:batch_id/cancel-drafts https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/cancel-drafts REQUEST SAMPLES * Payload Content type application/json Copy Expand all Collapse all { * "batch_detail_ids": [ * "d1363171-4587-4f8d-b276-977691e4a925" ] } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_name": "Apruve", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "xml_data": "string", * "batch_number": "string", * "batch_detail_count": 0, * "batch_detail_unprocessed_count": 0, * "batch_detail_error_count": 0, * "batch_detail_draft_count": 0, * "batch_detail_cancelled_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon" } CONFIRM BATCH DRAFTS HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON batch_detail_ids Array of strings <uuid> >= 0 items [ items <uuid > ] List of batch detail ids that needs to be processed property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/files/:file_id/batches/:batch_id/confirm-drafts https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/confirm-drafts REQUEST SAMPLES * Payload Content type application/json Copy Expand all Collapse all { * "batch_detail_ids": [ * "d1363171-4587-4f8d-b276-977691e4a925" ] } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_name": "Apruve", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "xml_data": "string", * "batch_number": "string", * "batch_detail_count": 0, * "batch_detail_unprocessed_count": 0, * "batch_detail_error_count": 0, * "batch_detail_draft_count": 0, * "batch_detail_cancelled_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon" } DOWNLOAD FILE BATCH WITH ERRORS CSV PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files/:file_id/batches/:batch_id/errors https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/errors RESPONSE SAMPLES * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "code": "invalid_customer_countries", * "message": "Request body failed JSON schema validation.", * "validationErrors": [ ] } ] UPDATE FILE BATCH WITH ERRORS CSV PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/files/:file_id/batches/:batch_id/errors https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/errors RESPONSE SAMPLES * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "code": "invalid_customer_countries", * "message": "Request body failed JSON schema validation.", * "validationErrors": [ ] } ] RETRY BATCH HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON batch_detail_ids Array of strings <uuid> >= 0 items [ items <uuid > ] List of batch detail ids that needs to be processed property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. post/v1/files/:file_id/batches/:batch_id/retry https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/retry REQUEST SAMPLES * Payload Content type application/json Copy Expand all Collapse all { * "batch_detail_ids": [ * "d1363171-4587-4f8d-b276-977691e4a925" ] } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_name": "Apruve", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "xml_data": "string", * "batch_number": "string", * "batch_detail_count": 0, * "batch_detail_unprocessed_count": 0, * "batch_detail_error_count": 0, * "batch_detail_draft_count": 0, * "batch_detail_cancelled_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon" } FILE BATCH DETAIL GET FILE BATCH DETAIL COLLECTION PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID correlation_id string [ 1 .. 1024 ] characters Example: correlation_id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The correlation ID of the API request that generated this resource. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. customer_id string <uuid> Example: customer_id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID customer_name string [ 1 .. 1024 ] characters Optional name for the customer seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. charge_id string <uuid> Example: charge_id=d1363171-4587-4f8d-b276-977691e4a925 Unique 3Rivers charge ID file_id string <uuid> Example: file_id=d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id string <uuid> Example: batch_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_number string [ 1 .. 20 ] characters The seller's batch number in the seller's format order_number string [ 1 .. 824 ] characters The seller's order number in the seller's format transaction_type string Enum: "Charge" "Refund" The type of transaction xml_data string non-empty The XML data for the batch detail. request_data string non-empty The 3Rivers Charge or Refund API request. draft_request_data string non-empty The draft 3Rivers Charge or Refund API request. response_data string non-empty 3Rivers response data. amount integer The batch detail currency amount. currency string non-empty The batch detail currency. status string Enum: "Unprocessed" "Retry" "Processed" "Error" "Cancelled" Batch detail status processed_at string <date-time> Date/time the resource was processed. error_code string non-empty 3Rivers API or BCS internal error code. error_description string non-empty 3Rivers API or BCS internal error message. error_at string <date-time> Date/time the resource failed processing. retry_count integer >= 0 The number of times processing of the resource has failed. user_updated_at string <date-time> Examples: user_updated_at=2019-01-01 user_updated_at=2019-01-01T23:59:59Z user_updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated through public API. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. user_updated_by string Examples: user_updated_by=Lauren Brandon user_updated_by=ReadOnlyAPIKey The user name or API key the resource was last updated through public API. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files/:file_id/batches/:batch_id/batchdetails https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/batchdetails RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "customer_name": "string", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_number": "string", * "order_number": "string", * "transaction_type": "Charge", * "xml_data": "string", * "request_data": "string", * "draft_request_data": "string", * "response_data": "string", * "amount": 0, * "currency": "string", * "retry_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_code": "string", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET FILE BATCH DETAIL PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "customer_name": "string", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_number": "string", * "order_number": "string", * "transaction_type": "Charge", * "xml_data": "string", * "request_data": "string", * "draft_request_data": "string", * "response_data": "string", * "amount": 0, * "currency": "string", * "retry_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_code": "string", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } UPDATE FILE BATCH DETAIL PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) REQUEST BODY SCHEMA: APPLICATION/JSON status required string Value: "Unprocessed" Batch detail status property name* additional property any RESPONSES 200 400 Error CodeDescription body_not_matching_json_schemaRequest body failed JSON schema validation. invalid_dataRequest body contains invalid JSON. invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. put/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id REQUEST SAMPLES * Payload Content type application/json Copy { * "status": "Unprocessed" } RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "customer_name": "string", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_number": "string", * "order_number": "string", * "transaction_type": "Charge", * "xml_data": "string", * "request_data": "string", * "draft_request_data": "string", * "response_data": "string", * "amount": 0, * "currency": "string", * "retry_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_code": "string", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } FILE BATCH DETAIL HISTORY GET FILE BATCH DETAIL HISTORY COLLECTION PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_detail_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail history resource ID batch_detail_id string <uuid> Example: batch_detail_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID correlation_id string [ 1 .. 1024 ] characters Example: correlation_id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The correlation ID of the API request that generated this resource. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. customer_id string <uuid> Example: customer_id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. charge_id string <uuid> Example: charge_id=d1363171-4587-4f8d-b276-977691e4a925 Unique 3Rivers charge ID file_id string <uuid> Example: file_id=d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id string <uuid> Example: batch_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_number string [ 1 .. 20 ] characters The seller's batch number in the seller's format order_number string [ 1 .. 824 ] characters The seller's order number in the seller's format transaction_type string Enum: "Charge" "Refund" The type of transaction xml_data string non-empty The XML data for the batch detail. request_data string non-empty The 3Rivers Charge or Refund API request. draft_request_data string non-empty The draft 3Rivers Charge or Refund API request. response_data string non-empty 3Rivers response data. amount integer The batch detail currency amount. currency string non-empty The batch detail currency. status string Enum: "Unprocessed" "Retry" "Processed" "Error" "Cancelled" Batch detail status processed_at string <date-time> Date/time the resource was processed. error_code string non-empty 3Rivers API or BCS internal error code. error_log string non-empty The error log is populated when the resource has a processing status of 'Error'. The log may hint at the cause of failure. error_at string <date-time> Date/time the resource failed processing. retry_count integer >= 0 The number of times processing of the resource has failed. user_updated_at string <date-time> Examples: user_updated_at=2019-01-01 user_updated_at=2019-01-01T23:59:59Z user_updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated through public API. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. user_updated_by string Examples: user_updated_by=Lauren Brandon user_updated_by=ReadOnlyAPIKey The user name or API key the resource was last updated through public API. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id/history https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id/history RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_detail_id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_number": "string", * "order_number": "string", * "transaction_type": "Charge", * "xml_data": "string", * "request_data": "string", * "draft_request_data": "string", * "response_data": "string", * "amount": 0, * "currency": "string", * "retry_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_code": "string", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET FILE BATCH DETAIL HISTORY PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_detail_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id/history/:batch_detail_history_id https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id/history/:batch_detail_history_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_detail_id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_number": "string", * "order_number": "string", * "transaction_type": "Charge", * "xml_data": "string", * "request_data": "string", * "draft_request_data": "string", * "response_data": "string", * "amount": 0, * "currency": "string", * "retry_count": 0, * "status": "Unprocessed", * "processed_at": "2019-08-24T14:15:22Z", * "error_code": "string", * "error_log": "string", * "error_at": "2019-08-24T14:15:22Z", * "user_updated_at": "2019-01-01", * "user_updated_by": "Lauren Brandon", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } FILE BATCH DETAIL LOG GET FILE BATCH DETAIL LOG COLLECTION PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_detail_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail log resource ID batch_detail_log_id string <uuid> Example: batch_detail_log_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail log resource ID correlation_id string [ 1 .. 1024 ] characters Example: correlation_id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The correlation ID of the API request that generated this resource. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. customer_id string <uuid> Example: customer_id=d1363171-4587-4f8d-b276-977691e4a925 Unique customer resource ID seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. charge_id string <uuid> Example: charge_id=d1363171-4587-4f8d-b276-977691e4a925 Unique 3Rivers charge ID file_id string <uuid> Example: file_id=d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id string <uuid> Example: batch_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_detail_id string <uuid> Example: batch_detail_id=d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID request_data string non-empty 3Rivers request data. response_data string non-empty 3Rivers response data. response_status number [ 100 .. 599 ] 3Rivers HTTP response status code. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id/logs https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id/logs RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_detail_id": "d1363171-4587-4f8d-b276-977691e4a925", * "request_data": "string", * "response_data": "string", * "response_status": 100, * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET FILE BATCH DETAIL LOG PATH PARAMETERS file_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique file resource ID batch_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch resource ID batch_detail_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail resource ID batch_detail_log_id required string <uuid> Example: d1363171-4587-4f8d-b276-977691e4a925 Unique batch detail log resource ID HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id/logs/:batch_detail_log_id https://api.qa-pluto.batchservice.trevipay.app/v1/files/:file_id/batches/:batch_id/details/:batch_detail_id/logs/:batch_detail_log_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "d1363171-4587-4f8d-b276-977691e4a925", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "customer_id": "d1363171-4587-4f8d-b276-977691e4a925", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "charge_id": "d1363171-4587-4f8d-b276-977691e4a925", * "file_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_id": "d1363171-4587-4f8d-b276-977691e4a925", * "batch_detail_id": "d1363171-4587-4f8d-b276-977691e4a925", * "request_data": "string", * "response_data": "string", * "response_status": 100, * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } PROGRAMS GET PROGRAM COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. id string <uuid> Example: id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. name string [ 1 .. 1024 ] characters Examples: name=Apruve name=BestBuy name=Lenovo The name of the program. status any Enum: "Created" "Active" "Inactive" "Terminated" "Archived" reply_to_email string <= 200 characters support_email string <= 200 characters sender_email string <= 200 characters processed_message_ts string <date-time> Examples: processed_message_ts=2019-01-01T23:59:59.999Z The timestamp of the message that created or updated this resource. This is used to ignore duplicate messages, and ensure that messages are not processed out-of-order created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/programs https://api.qa-pluto.batchservice.trevipay.app/v1/programs RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "status": "Created", * "reply_to_email": "пошта@укр.нет", * "support_email": "пошта@укр.нет", * "sender_email": "пошта@укр.нет", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET PROGRAM PATH PARAMETERS program_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/programs/:program_id https://api.qa-pluto.batchservice.trevipay.app/v1/programs/:program_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "status": "Created", * "reply_to_email": "пошта@укр.нет", * "support_email": "пошта@укр.нет", * "sender_email": "пошта@укр.нет", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } REPORT GET REPORT COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report resource ID. report_id string <uuid> Example: report_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report resource ID. name string [ 1 .. 1024 ] characters Examples: name=Transaction Processing Report name=Transaction Rejection Report The name of the report. supported_schedule_frequencies Array of any non-empty Items Enum: "Daily" "Weekly" "Monthly" The set of schedule frequencies the report supports. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/reports https://api.qa-pluto.batchservice.trevipay.app/v1/reports RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Transaction Processing Report", * "supported_schedule_frequencies": [ * "Daily" ], * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET REPORT PATH PARAMETERS report_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/reports/:report_id https://api.qa-pluto.batchservice.trevipay.app/v1/reports/:report_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy Expand all Collapse all { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Transaction Processing Report", * "supported_schedule_frequencies": [ * "Daily" ], * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } REPORT SCHEDULE GET REPORT SCHEDULE COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report schedule resource ID. report_schedule_id string <uuid> Example: report_schedule_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report schedule resource ID. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. report_id string <uuid> Example: report_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report resource ID. report_scope any Enum: "Client" "Seller" The scope the report schedule has been created under. The report schedule scope determines visibility of the report schedule. schedule_tz string Example: schedule_tz=GMT+10 The timezone the report schedule should use when determining when the report should be scheduled and the data that is included in the report. schedule_frequency any Enum: "Daily" "Weekly" "Monthly" The frequency the report is able to be run. A report cannot be scheduled for a frequency the report does not support. schedule_week_day any Enum: "Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" Example: schedule_week_day=Monday When the schedule frequency is weekly, this defines the day of the week the report will be scheduled. recipient_emails string The comma separated list of email addresses the resulting report should be emailed to. last_scheduled_at string <date-time> The UTC timestamp of the most recently scheduled report for this schedule. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/reportschedules https://api.qa-pluto.batchservice.trevipay.app/v1/reportschedules RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_scope": "Client", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string", * "last_scheduled_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET REPORT SCHEDULE PATH PARAMETERS report_schedule_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique report schedule resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/reportschedules/:report_schedule_id https://api.qa-pluto.batchservice.trevipay.app/v1/reportschedules/:report_schedule_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "report_scope": "Client", * "schedule_tz": "GMT+10", * "schedule_frequency": "Daily", * "schedule_week_day": "Monday", * "recipient_emails": "string", * "last_scheduled_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } SELLER CONTACTS GET SELLER CONTACT COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. client_id string <uuid> Example: client_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique client resource ID. program_id string <uuid> Example: program_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique program resource ID. seller_id string <uuid> Example: seller_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique seller resource ID. id string <uuid> Example: id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique batch service seller contact resource ID. seller_contact_id string <uuid> Example: seller_contact_id=3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique batch service seller contact resource ID. name string [ 1 .. 1024 ] characters Examples: name=Apruve name=BestBuy name=Lenovo The name of the seller contact. email string Examples: email=systems-bestbuy@multiservice.com Seller physical contact address email address. country string Examples: country=US Seller physical contact address country. state string Examples: state=TX Seller physical contact address state. city string Examples: city=Farmers Branch Seller physical contact address city. street string Examples: street=4255 Lyndon B Johnson Fwy Seller physical contact address street. post_code string Examples: post_code=90210 Seller physical contact address postal code. processed_message_ts string <date-time> Examples: processed_message_ts=2019-01-01T23:59:59.999Z The timestamp of the message that created or updated this resource. This is used to ignore duplicate messages, and ensure that messages are not processed out-of-order created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/sellercontacts https://api.qa-pluto.batchservice.trevipay.app/v1/sellercontacts RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "email": "systems-bestbuy@multiservice.com", * "country": "US", * "state": "TX", * "city": "Farmers Branch", * "street": "4255 Lyndon B Johnson Fwy", * "post_code": "90210", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET SELLER CONTACT PATH PARAMETERS seller_contact_id required string <uuid> Example: 3c87bd2b-df9a-413b-94ab-0238dcacaf68 Unique batch service seller contact resource ID. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/sellercontacts/:seller_contact_id https://api.qa-pluto.batchservice.trevipay.app/v1/sellercontacts/:seller_contact_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "client_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "program_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "seller_id": "3c87bd2b-df9a-413b-94ab-0238dcacaf68", * "name": "Apruve", * "email": "systems-bestbuy@multiservice.com", * "country": "US", * "state": "TX", * "city": "Farmers Branch", * "street": "4255 Lyndon B Johnson Fwy", * "post_code": "90210", * "processed_message_ts": "2019-01-01T23:59:59.999Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } SETTLEMENT UPLOAD A SETTLEMENT FILE Settlement file uploads currently support Servicegate XML V2 https://gitlab.com/msts-enterprise/ox/batch/-/wikis/Engineering/BatchFileSpecification HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) post/v1/settlements https://api.qa-pluto.batchservice.trevipay.app/v1/settlements SQS MESSAGE GET SQS MESSAGE COLLECTION QUERY PARAMETERS sort_column[] Array of strings non-empty [ items non-empty ] Examples: sort_column[]=created_at sort_column[]=-updated_at Specify the resource property name to sort the API response in ascending order. To sort in descending order, prefix the resource property name with a -. page_size integer [ 1 .. 250 ] Default: 10 Example: page_size=20 Number of records per page page_number integer >= 1 Default: 1 Example: page_number=2 If the requested page does not exist, an empty collection is returned. id string <uuid> Example: id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The unique id assigned by SQS to a message. correlation_id string [ 1 .. 1024 ] characters Example: correlation_id=e86f4f0d-329d-42a7-be3e-f13ef305d111 The correlation ID of the API request that generated this resource. queue_url string <= 2000 characters ^https:// The url of the SQS queue from which this message was received. group_id string Messages that belong to the same message group are always processed one by one, in a strict order relative to the message group. However, messages that belong to different message groups might be processed out of order. This property matches the MessageGroupId in the original SQS message, if present. If not, it is extracted from the message body by this service. subject string [ 1 .. 1024 ] characters The subject that was published to the SNS topic. body string non-empty The message body of the SQS message. attributes string non-empty Metadata about the message in a JSON document published to the SNS topic. status any Enum: "Unprocessed" "Processed" "Failed" The status of the message. It is inserted as 'unprocessed', which is eligible for processing by an application consumer. error_log string non-empty The error log is populated when the SQS message has a status of 'Failed'. The log may hint at the cause of failure. failure_count integer >= 0 The number of times processing the SQS message record has failed. failed_at string <date-time> Date/time the SQS message processing last failed. processed_at string <date-time> Date/time the SQS message was processed. created_at string <date-time> Examples: created_at=2019-01-01 created_at=2019-01-01T23:59:59Z created_at=2019-01-01T23:59:59.999Z Date/time the resource was created. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. updated_at string <date-time> Examples: updated_at=2019-01-01 updated_at=2019-01-01T23:59:59Z updated_at=2019-01-01T23:59:59.999Z Date/time the resource was last updated. When used as a query parameter, only the formats in the examples are supported. If only a date is specified, the date timezone is assumed to be UTC. HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/sqsmessages https://api.qa-pluto.batchservice.trevipay.app/v1/sqsmessages RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 500 Content type application/json Copy Expand all Collapse all [ * { * "id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "queue_url": "^https://", * "group_id": "string", * "subject": "string", * "body": "string", * "attributes": "string", * "status": "Unprocessed", * "error_log": "string", * "processed_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" } ] GET SQS MESSAGE HEADER PARAMETERS Authorization required string <uuid> (Authorization Header) Example: fc401b74-590e-4996-9308-38017f25425f Authenticate by API key. X-Authenticated-Request required object (X-Authenticated-Request header payload (v1.0.0)) X-Authenticated-Request-Permissions required object (X-Authenticated-Request-Permissions header payload (v1.0.0)) RESPONSES 200 400 Error CodeDescription invalid_parameterThe value for the parameter is invalid. 401 Error CodeDescription unauthenticatedAuthentication information is missing or invalid. 403 Error CodeDescription unauthorizedPermission to the requested resource is denied. 404 Error CodeDescription resource_not_foundResource not found. 500 Error CodeDescription internal_errorAn internal error has occurred. get/v1/sqsmessages/:sqsmessage_id https://api.qa-pluto.batchservice.trevipay.app/v1/sqsmessages/:sqsmessage_id RESPONSE SAMPLES * 200 * 400 * 401 * 403 * 404 * 500 Content type application/json Copy { * "id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "correlation_id": "e86f4f0d-329d-42a7-be3e-f13ef305d111", * "queue_url": "^https://", * "group_id": "string", * "subject": "string", * "body": "string", * "attributes": "string", * "status": "Unprocessed", * "error_log": "string", * "processed_at": "2019-08-24T14:15:22Z", * "created_at": "2019-01-01", * "updated_at": "2019-01-01" }