Capture
This endpoint is used to capture a previously authorized payment transaction. It requires a JSON payload containing transaction details, capture information, and device information.
The URL for this endpoint is https://api.firstoken.co/v1/payments/:id/capture
In case of sandbox environment you should use this URL: https://api.firstoken-staging.co/v1/payments/:id/capture
Request Headers
Content-Type:
application/json
x-api-key:
<Your API Key>
id: string
The unique identifier of the transaction to be captured.
Request Body
The request body should be a JSON object with the following structure:
Response
The response will be a JSON object with the following structure:
In case of an error, the response will have a status
of fail
and a descriptive message
. The data
object provides more details about the specific issues encountered.
Last updated
Was this helpful?