ACME Payments documentation is a draft & work in progress.  Updates may be published periodically.  


TABLE OF CONTENTS


Capture of an Authorization

This API is used to complete the payment after an authorization has been completed. 


This API depends on the Authorization API and the Charge Object.


POST v1/payment/{mid}/capture

Request Parameters

The merchant id of the seller performing the capture.

Request Body

Include a CaptureRequest object as the body of the request.


Sample Request

POST https://sand10-api.acmeticketing.net/v1/payment/987-654-321/capture


Response

Returns an CaptureResponse object. 


CaptureRequest Object


NameTypeDescriptionRequired
authorizationIdstringACME’s authorization id, corresponding to the AuthorizationResponse.Required
chargeChargeThe charge object must contain the amount.   The amount must be less than or equal to the authorized amount.  Required



CaptureResponse Object


NameTypeDescription
orderIdnumberThe order to which the charge is being applied.   
paymentIdstringUnique identifier for this payment


Sample Request Body

{
  "authorizationId": "abc-123",
  "charge": {
    "amount" : 5000,
    "customerPresent" : false
  }
}


Sample Response Body

{
   "orderId" : 123456
}