Get an adjustment

get/adjustments/{id}

The GET /adjustments/{id} call allows your platform to look up a single adjustment. Be sure to subscribe to the adjustments.created Notification event topic in order to programmatically integrate new Adjustments that WePay makes to the merchant's Account.

SecurityappIdAuth and appTokenAuth
Request
path Parameters
id
required
string [ 1 .. 255 ] characters

ID of the adjustment, generated by WePay when the adjustment is created.

header Parameters
Api-Version
required
string
Example: 3.0
Unique-Key
string
Responses
200
Response Schema: application/json
required
object or null

When an adjustment occurs, fetch this transaction record to account for the credit OR debit impacting the merchant's account balance.

resource
required
string

Helps organize information by identifying the resource type of the object data.

Value: Description
adjustments
required
object or null

Any custom data your platform chooses to attach to this resource. The custom data must be key-value pairs and not contain any personally identifiable information (PII) or payment card (PCI) data.

required
object

Reasons for and details about the Adjustment.

currency
required
string

ISO 4217 currency code. Possible values include: CAD, GBP, USD.

amount
required
integer

Amount of the adjustment.

create_time
required
integer <int64> >= 0

The time (in UNIX) when the adjustment was created.

required
object or null

Details the owner resource and owner path.

path
required
string

Path of resource and resource ID.

type
required
string

Types of adjustments. Possible values include: credit, debit.

Enum: Description
credit

Indicates that the adjustment credited the given account with the given amount.

debit

Indicated that the adjustment debited the given account for the given amount.

id
required
string

ID of the adjustment, generated by WePay when the adjustment is created.

api_version
string
400

INVALID_PARAMS

403

NOT_AUTHORIZED

500

UNEXPECTED_ERROR

Request samples
Response samples
application/json
{
  • "amount": 1000,
  • "create_time": 1520471380,
  • "currency": "USD",
  • "custom_data": null,
  • "id": "9fed5d2f-3957-412c-9f30-efabcc2b5405",
  • "owner": {
    • "id": "46f481b3-a267-48e5-b6b6-e7685d3031f8",
    • "path": "/accounts/46f481b3-a267-48e5-b6b6-e7685d3031f8",
    • "resource": "accounts"
    },
  • "path": "/adjustments/9fed5d2f-3957-412c-9f30-efabcc2b5405",
  • "reason": {
    • "reason_code": "REIMBURSEMENTS_AND_CORRECTIONS",
    • "reason_message": "Adjustment for reimbursement or corrections.",
    • "details": [
      • {
        • "detail_code": "bank_overdraft_fee",
        • "detail_message": "Reimbursement of Bank Overdraft Fee."
        }
      ]
    },
  • "resource": "adjustments",
  • "txnr_adjustment": {
    • "id": "80027dfa-39a2-4d6e-ac7a-024c61340bc2",
    • "path": "/transaction_records/80027dfa-39a2-4d6e-ac7a-024c61340bc2",
    • "resource": "transaction_records"
    },
  • "type": "credit",
  • "api_version": "3.0"
}