{
"data": {
"id": "xYZkjABcde",
"type": "external_gateways",
"links": {
"self": "https://yourdomain.commercelayer.io/api/external_gateways/xYZkjABcde"
},
"attributes": {
"name": "US payment gateway",
"created_at": "2018-01-01T12:00:00.000Z",
"updated_at": "2018-01-01T12:00:00.000Z",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
},
"authorize_url": "https://external_gateway.com/authorize",
"capture_url": "https://external_gateway.com/capture",
"void_url": "https://external_gateway.com/void",
"refund_url": "https://external_gateway.com/refund",
"token_url": "https://external_gateway.com/token",
"circuit_state": "closed",
"circuit_failure_count": 5,
"shared_secret": "1c0994cc4e996e8c6ee56a2198f66f3c"
},
"relationships": {
"payment_methods": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/external_gateways/xYZkjABcde/relationships/payment_methods",
"related": "https://yourdomain.commercelayer.io/api/external_gateways/xYZkjABcde/payment_methods"
}
},
"versions": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/external_gateways/xYZkjABcde/relationships/versions",
"related": "https://yourdomain.commercelayer.io/api/external_gateways/xYZkjABcde/versions"
}
},
"external_payments": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/external_gateways/xYZkjABcde/relationships/external_payments",
"related": "https://yourdomain.commercelayer.io/api/external_gateways/xYZkjABcde/external_payments"
}
}
},
"meta": {
"mode": "test",
"organization_id": "xRRkjDFafe",
"trace_id": "69abaa3545913c78132e5578bd26208d44aa9043647d78698fd0021f3958cd74"
}
}
}