TransactionAttempts API

for owner, affiliate, and author

GET /api/v1/transaction_attempts/

Parameters

Name Description
id id

Request

Headers

Accept: application/json
X-Api-Token: HQtmySfDtxGSxBdaGzpuQkZRch1xnUBByA
X-Api-Email: user-218@example.com

Route

GET /api/v1/transaction_attempts/?id=3

Query Parameters

id: 3

cURL

curl "http://localhost:3000/api/v1/transaction_attempts/?id=3" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: HQtmySfDtxGSxBdaGzpuQkZRch1xnUBByA" \
	-H "X-Api-Email: user-218@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 275

Status

200 OK

Body

{
  "transactions": [

  ],
  "aggregations": {
    "final_price": 0.0,
    "affiliate_fees": 0,
    "author_fees": 0,
    "amount_refunded": 0,
    "earnings_usd": 0,
    "is_chargeback": 0,
    "amount_refunded_usd": 0
  },
  "has_affiliates": false,
  "has_coupons": false,
  "meta": {
    "page": 1,
    "total": 0,
    "number_of_pages": 0,
    "from": 1,
    "to": 0
  }
}

Request

Headers

Accept: application/json
X-Api-Token: HQtmySfDtxGSxBdaGzpuQkZRch1xnUBByA
X-Api-Email: user-218@example.com

Route

GET /api/v1/transaction_attempts/?id=3

Query Parameters

id: 3

cURL

curl "http://localhost:3000/api/v1/transaction_attempts/?id=3" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: HQtmySfDtxGSxBdaGzpuQkZRch1xnUBByA" \
	-H "X-Api-Email: user-218@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 274

Status

200 OK

Body

{
  "transactions": [

  ],
  "aggregations": {
    "final_price": 0.0,
    "affiliate_fees": 0,
    "author_fees": 0,
    "amount_refunded": 0,
    "earnings_usd": 0,
    "is_chargeback": 0,
    "amount_refunded_usd": 0
  },
  "has_affiliates": true,
  "has_coupons": false,
  "meta": {
    "page": 1,
    "total": 0,
    "number_of_pages": 0,
    "from": 1,
    "to": 0
  }
}

Request

Headers

Accept: application/json
X-Api-Token: HQtmySfDtxGSxBdaGzpuQkZRch1xnUBByA
X-Api-Email: user-218@example.com

Route

GET /api/v1/transaction_attempts/?id=3

Query Parameters

id: 3

cURL

curl "http://localhost:3000/api/v1/transaction_attempts/?id=3" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: HQtmySfDtxGSxBdaGzpuQkZRch1xnUBByA" \
	-H "X-Api-Email: user-218@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 275

Status

200 OK

Body

{
  "transactions": [

  ],
  "aggregations": {
    "final_price": 0.0,
    "affiliate_fees": 0,
    "author_fees": 0,
    "amount_refunded": 0,
    "earnings_usd": 0,
    "is_chargeback": 0,
    "amount_refunded_usd": 0
  },
  "has_affiliates": false,
  "has_coupons": false,
  "meta": {
    "page": 1,
    "total": 0,
    "number_of_pages": 0,
    "from": 1,
    "to": 0
  }
}