Actions
Test request (GET /ping)
Name
Description
Example
curl -v -X GET -H 'Content-Type: application/json' 'http://project:***@api.box:5001/ping'
> GET /ping HTTP/1.1
> Authorization: Basic cHJvamVjdDpwYXNzd29yZA==
> Host: api.box:5001
> Content-Type: application/json
>
< HTTP/1.1 200 OK
< Content-Type: application/json
< Content-Length: 48
<{
"date": "2016-08-22 15:39:42",
"message": "PONG!"
}Fetching data
Order information (GET /orders/:id)
Name
Description
Example
Status
Possible operations
Description
List of orders (GET /orders/)
Name
Description
Example
curl -v -X GET -H 'Content-Type: application/json' 'http://project:***@api.box:5001/orders/'
> GET /orders/ HTTP/1.1
> Authorization: Basic cHJvamVjdDpwYXNzd29yZA==
> Host: api.box:5001
> Content-Type: application/json
>
< HTTP/1.1 200 OK
< Content-Type: application/json
< Content-Length: 5550
<{
"orders": [
{
"amount": "9.99",
"amount_charged": "0.00",
"amount_refunded": "0.00",
"auth_code": "AUTH12",
"created": "2016-08-22 15:39:49",
"currency": "USD",
"description": "Book sale #453",
"descriptor": "TESTMERCH/TERM",
"id": "23014806815093624",
"merchant_order_id": "5678",
"pan": "411111****1111",
"segment": "987654321",
"status": "authorized",
"updated": "2016-08-22 15:39:49"
},
{
"amount": "9.99",
"amount_charged": "0.00",
"amount_refunded": "0.00",
"auth_code": "AUTH12",
"created": "2016-08-22 15:39:48",
"currency": "USD",
"description": null,
"descriptor": "TESTMERCH/TERM",
"id": "23014806643308174",
"merchant_order_id": null,
"pan": "411111****1111",
"status": "authorized",
"updated": "2016-08-22 15:39:48"
}
]
}List of operations (GET /operations/)
Name
Description
Example
Name
Description
Example
Export of currency rates (GET /exchange_rates/)
Name
Description
Example
Name
Description
Example
Working with orders
Order creation (POST /orders/create)
Name
Description
Description
Name
Description
Example
Authorize (POST /orders/authorize)
Name
Description
Example
Name
Description
Example
Name
Description
Example
Examples
Reverse (PUT /orders/:id/reverse)
Charge (PUT /orders/:id/charge)
Name
Description
Example
Refund (PUT /orders/:id/refund)
Name
Description
Example
Cancel (PUT /orders/:id/cancel)
Name
Description
Example
Repeating payment (POST /orders/:id/rebill)
Name
Description
Example
Name
Description
Example
Original credit transaction (OCT) (POST /orders/:id/credit)
Name
Description
Example
Original credit transaction without link to order (OCT) (POST /orders/credit)
Name
Description
Example
Authorization with the transfer of an encrypted token ( POST /orders/token_pay)
Completion of 3-D Secure Authentication (POST /orders/:id/complete)
Name
Description
Example
Completion of 3-D Secure 2.0 Authentication (POST /orders/:id/complete3d20)
Name
Description
Example
Continue 3DS Method URL of authentication (POST /orders/:id/resume)
Last updated