Endpoints¶
Each API method has its own URL. Add the method name to the base URL of the environment you're calling:
https://{host}/v1/{method_name}
| Environment | Base URL |
|---|---|
| Development | https://gatewaybeta.marcofinearts.com/v1/ |
| Production | https://gateway.marcofinearts.com/v1/ |
For example, Add order in production is:
POST https://gateway.marcofinearts.com/v1/push_order
Note
Development and production need separate accounts and credentials. Build and test against development, then switch the base URL and credentials when you go live.
Methods¶
| Method | Description |
|---|---|
push_order |
Create a new order |
re_order |
Reorder |
get_order |
Get order information |
get_status |
Get order status and tracking number |
hold_order |
Put an order on hold |
unhold_order |
Release a held order |
cancel_order |
Cancel an order |
enable_rush_processing |
Mark an order for rush processing |
change_ship_address |
Change the shipping address |
change_ship_method |
Change the shipping carrier and method |
change_ship_deadline |
Change the shipping deadline |
shipping_rate |
Get shipping rates |
package_info |
Get box count and sizes |