curl 'https://swpcore.shopwired.io/v1/payments/pay_7c1q9m?merchant_id=swpm_8f3k2m' \
-H "Authorization: Bearer swpk_production_7Hq2…" \
-H "User-Agent: ShopWired-Platform/1.0"
const response = await fetch("https://swpcore.shopwired.io/v1/payments/pay_7c1q9m?merchant_id=swpm_8f3k2m", {
method: "GET",
headers: {
"Authorization": "Bearer " + process.env.SWP_API_KEY,
"User-Agent": "ShopWired-Platform/1.0",
},
});
const payment = await response.json();<?php
$response = $http->request("GET", "https://swpcore.shopwired.io/v1/payments/pay_7c1q9m?merchant_id=swpm_8f3k2m", [
"headers" => [
"Authorization" => "Bearer " . getenv("SWP_API_KEY"),
"User-Agent" => "ShopWired-Platform/1.0",
],
]);
$payment = json_decode($response->getBody(), true);{
"id": "pay_7c1q9m",
"object": "payment",
"merchant_id": "swpm_8f3k2m",
"status": "captured",
"capture_mode": "automatic",
"channel": "ecommerce",
"amount_minor": "4999",
"authorised_amount_minor": "4999",
"captured_amount_minor": "4999",
"capturable_amount_minor": "0",
"refunded_amount_minor": "0",
"refundable_amount_minor": "4999",
"processing_fee_amount_minor": "87",
"processing_fee_refunded_amount_minor": "0",
"net_processing_fee_amount_minor": "87",
"platform_fee": {
"gross_amount_minor": "25",
"refunded_amount_minor": "0",
"net_amount_minor": "25",
"currency": "GBP",
"refund_policy": "retain_on_payment_refund"
},
"capture_available": false,
"refund_available": true,
"order_completion_signal": "paid",
"currency": "GBP",
"reference": "CHECKOUT-1001",
"order_reference": "ORDER-1001",
"description": "Order 1001",
"payment_session_id": "swpps_5n2v8k",
"customer_reference": "cust_1042",
"card": {
"payment_method": "card",
"brand": "visa",
"funding": "debit",
"country_code": "GB",
"masked_number": "**** 4242"
},
"failure": null,
"metadata": {
"order_id": "1001"
},
"created_at": "2026-08-11T10:00:00Z",
"updated_at": "2026-08-11T10:00:09Z",
"captures": [
{
"id": "paycap_2k8d1w",
"object": "payment_capture",
"status": "captured",
"amount_minor": "4999",
"currency": "GBP",
"captured_at": "2026-08-11T10:00:09Z"
}
],
"disputes": [],
"receipt": {
"payment_id": "pay_7c1q9m",
"eligible": true,
"requested": false
},
"terminal": null,
"links": {
"self": "/v1/payments/pay_7c1q9m?merchant_id=swpm_8f3k2m",
"payment_session": "/v1/payment-sessions/swpps_5n2v8k",
"refunds": "/v1/payments/pay_7c1q9m/refunds?merchant_id=swpm_8f3k2m",
"disputes": "/v1/payments/pay_7c1q9m/disputes?merchant_id=swpm_8f3k2m"
}
}