# General Overview

Whenever a transaction is completed, there are a few actions available based on the type of transaction. The most common use cases include voiding, refunding and capturing a transaction.

NOTE

Remember to replace "https://services-ote.poynt.net" with "https://services.poynt.net" for production environments and make sure to use "https://services-eu.poynt.net" if you are located in the EU.

TIP

Remember to place your businessId or transactionID in the {businessId} section in the Request URL

# Sale Refund

Request URL: "https://services-ote.poynt.net/businesses/{businessId}/transactions"
Request Method: POST

Request Body:

{
  "action": "REFUND",
  "parentId": "<transactionId of transaction to void>",
  "id": "<random uuid>",
  "amounts:": "https://poynt.com/docs/api/#model-transactionamounts" //(optional for complete transaction refund)
}

TIP

In cases where the refund is partial, you can enter the amount in the corresponding field

# Auth/Sale Void

Request URL: "https://services-ote.poynt.net/businesses/{businessId}/transactions/{transactionID}/void"
Request Method: POST

Request Body:

{} // empty body

# Auth/Sale Capture

Request URL: "https://services-ote.poynt.net/businesses/{businessId}/transactions/{transactionID}/capture"
Request Method: POST

Request Body:

{
  "amounts":{
    "currency":"USD",
    "orderAmount":100,
    "tipAmount":0,
    "transactionAmount":100
  }
}
Last Updated: 10/5/2022, 2:59:18 PM