Payment Provider Asynchronous API (0)
Download OpenAPI specification:Download
Allows integration adapters for asynchronuous PSPs to notify NewStore of updates for requested payment operations.
Represents a submitted payment operation status that your payment provider updated.
Use this resource if you are working with asynchronous payment providers, or providers that take a long time to respond, to notify NewStore about the completion of payment operations.
Note: Payment provider integration is done using the Payment Provider Webhooks. For more information about the terminology, the integration procedure and use cases, refer to the integration guide.
Important: All these requests contain an idempotency key. Make sure that you send the same response
every time you receive a request with a given idempotency key.
For example, if you receive 3 requests containing the idempotency key abcd, whether the request body
has changed or not, you must give the same response to these 3 requests.
Note: The defined baseUri is for illustration purposes only, edit it as needed.
Notify success
Notifies NewStore of a successful asynchronous call.
path Parameters
| provider_name required | string (Provider Name)  The name of the payment provider. | 
| correlation_id required | string (Correlation ID)  The correlation id is the idempotency key ( | 
| instrument_id required | string (Instrument ID)  The identifier of the instrument ( | 
Request Body schema: application/json
| Array of objects (A financial instrument transaction)  A list of transactions that resulted from a successful operation. If the operation is asynchronous, this list is empty. To complete the request, use the Payment Provider Asynchronous API to notify NewStore of the outcome of the request. | |||||||||||||||||||||||
|  Array  
 | |||||||||||||||||||||||
Responses
Request samples
- Payload
{- "transactions": [- {- "transaction_id": "string",
- "instrument_id": "string",
- "capture_amount": 0,
- "refund_amount": 0,
- "currency": "str",
- "reason": "authorization",
- "metadata": { },
- "payment_method": "string",
- "payment_wallet": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z"
 }
 ]
}Response samples
- 400
- 500
{- "error_code": "internal_error",
- "message": "string",
- "details": { }
}Notify failure
Notifies NewStore of a failed asynchronous operation.
path Parameters
| provider_name required | string (Provider Name)  The name of the payment provider. This is the name that is configured as "name" in the Configuration Editor. | 
| correlation_id required | string (Correlation ID)  The correlation id is the idempotency key ( | 
| instrument_id required | string (Instrument ID)  The identifier of the instrument ( | 
Request Body schema: application/json
| error_code required | string  non-empty   Enum: "internal_error" "retry_error" "instrument_error" "fraud_error" "rate_limit" "failed_command" "psp_api_error"  An error type. You can use it to aggregate classes of errors. | 
| message required | string  non-empty  Human readable message explaining the error. | 
| details | object Metadata information that might be useful for debugging an error. | 
Responses
Request samples
- Payload
{- "error_code": "internal_error",
- "message": "string",
- "details": { }
}Response samples
- 400
- 500
{- "error_code": "internal_error",
- "message": "string",
- "details": { }
}