Payments

Use this method to adjust a payment in an open batch.

To adjust a payment, you need its paymentId. Our gateway returned the paymentId in the response of the Create Payment method.

Note: If you don't have the paymentId, use our List Payments method to search for the payment.

You can adjust the following details of the payment:

  • Sale amount and tip amount
  • Payment status
  • Cardholder shipping address and contact information
  • Cardholder signature data

Our gateway returns information about the adjusted payment, including information about the payment card and the cardholder.

post/payments/{paymentId}/adjust

Request

  • Base URL
    https://api.payroc.com/v1
  • URL
    https://api.payroc.com/v1/payments/{paymentId}/adjust
  • Auth
    HTTP bearer

Path parameters

paymentIdstring required

Unique identifier of the payment that the merchant wants to retrieve.

Headers

Idempotency-Keystring uuid required

Unique identifier that you generate for each request. You must use the UUID v4 format for the identifier. For more information about the idempotency key, go to Idempotency.

Request body

operatorstring

Operator who adjusted the payment.

Response

Successful request. We adjusted the transaction.

paymentIdstring required

Unique identifier that our gateway assigned to the transaction.

processingTerminalIdstring required

Unique identifier of the terminal that initiated the transaction.

operatorstring

Operator who initiated the request.

supportedOperationsSupportedOperationsItems[]

Array of operations that you can perform on the transaction. Our gateway can return any of the following values:

Changes

    • breaking

      the // response property's maxLength was increased from 100 to 255 for the response status

    • info

      added the optional property // to the response with the status

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security Bearer was added to the API