Add tracking details to a capture
Include atracking array when you capture a transaction. Each entry describes one shipment, and a capture can include up to 5 entries.
See the capture transaction reference for the full list of supported carriers.
Payment service support
Gr4vy accepts tracking details on captures for every connection. They’re only forwarded to payment services that support them. To see which connectors support shipment tracking, filter the connector catalog or check the Capabilities section of each connector’s page. Each carrier is mapped to the equivalent value that the payment service expects. If a payment service has no matching value, Gr4vy uses its generic “other” or “unknown” value where one exists, and otherwise sends no carrier value. Some payment services don’t accept every field. Check the connector’s page for any differences in how tracking details are handled.Retrieve tracking details
Gr4vy always stores tracking details on the capture record. This is the case even when they weren’t forwarded to the payment service, or when the capture or tracking request to the payment service failed. You can retrieve them in the following ways:- Call list transaction captures or get transaction capture. Each capture includes its
trackingdetails. - Set the
Prefer: resource=transaction-captureheader when you capture the transaction. The response is then atransaction-captureresource that includestracking, rather than the defaulttransactionresource. See Prefer header for details.