Fetch the payments attached to a given Contract

Time Status User Agent
Make a request to see history.

URL Expired

The URL for this request expired after 30 days.

id

integer

required

The id of the contract

``200 Success

array of objects

object

id

integer

required

Payment ID

created t_at

date-time

required

Time that payment was created

last t_four

string

Last four digits of the payment method

card type

string

Card type of the payment method

amount

float

required

Total payment amount

error t_code

number

payment code returned by the payment processor on failed payments

provider

string

required

Payment processor provider

refund t_of_id

integer

If this payment is a refund, the ID of the original payment

refundable t_amount

float

required

If this payment is a refund, the total amount refunded so far on the original payment

status

string

enum

required

Status of the payment transaction

authorization_expired``authorized``completed``failed``pending

links

object

required

links object

``401 Unauthorized

``403 Forbidden

``404 Not found

``406 Not Acceptable


curl --request GET \
     --url https://api.dealerware.com/admin/contracts/id/payments \
     --header 'accept: application/json'
[
  {
    "id": 42,
    "created_at": "2020-06-15T20:22:26Z",
    "last_four": "1234",
    "card_type": "Visa",
    "amount": 50.25,
    "error_code": 3005,
    "provider": "braintree",
    "refund_of_id": 21,
    "refundable_amount": 25,
    "status": "authorization_expired",
    "links": {
      "contract": {
        "id": 2,
        "href": "https://api.dw-tst.com/admin/some_resources/2"
      }
    }
  }
]