Create a Gateway
POST https://api.atpay.com/api/v5/rest/gateways
Description
Creates a new Gateway record.Arguments
Argument | Description | Required |
---|---|---|
type | description | true |
credentials | a hash of the gateway's required credentials | |
default | set as default gateway |
Example Request
curl https://api.atpay.com/api/v5/rest/gateways \
-u key:secret \
-d type=test \
-d default=true
Example Response
{
"created_at" : "2017-02-27T13:10:37.910-07:00",
"status" : "Active",
"name" : "Spreedly Test",
"id" : "gw_PkCqHWQdT7iVgp83BOo-Ww",
"default" : true
}