payments/v1/checkout/transaction Response 201 Created with PayPal

Response 201 when I call to POST payments/v1/checkout/transaction , with PayPal from the checkout form.

why is that?

Comments

  • Hi Omri, 201 is a documented response on the checkout endpoint. When a 201 occurs, a GET request should be used to retrieve the details of the transaction as outlined in the description under the 201 response.

  • Do you have an example of the data that will be returned from that additional API call? Is it the same as the data response for the normal BB Payment checkout or is it more PayPal/Gateway specific?
  • Hey Warren, It responds 201 with an empty body (empty string), with no PayPal payment it responds 200 with full details of the transaction in the body

  • Hey Catherine, How do I get the transaction ID if the body of the transaction is empty from the POST payments/v1/checkout/transaction?

  • Thanks, should have been clearer: If you call the URL that is provided in the 201 response header for a PayPal payment what do you get back? I assume some PayPal response JSON? With maybe some IDs we can use for reconciliation? Is there a sample and could that be added to the documentation?

  • Thank you, I will try to be more clearly, only with PayPal, from the POST ‘payments/v1/checkout/transaction’ I receive 201 with no JSON and no data at all (the body object is an empty string), as written in the Blackbaud payments docs (scroll to ‘Response 201 Created’):

  • Hi Warren, the response of the GET Transaction endpoint is the same as the data response for the normal (200) BB Payment checkout. You can find more information about this endpoint here.

  • Hi Omri, the transaction ID information can be found in the Header of the response, under Location.