Niccolo
Niccolo

Reputation: 815

Deleting a card problems with Balanced API

I am using PHP to try delete a card from Balanced.

I have tried

$card = Balanced\Card::get("/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC5N3HHUDrAyvhNwQOoUd3UX");
$card->unstore();

and

$card = Balanced\Card::get("/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC5N3HHUDrAyvhNwQOoUd3UX");
$card->unstore();

Note the different format on the card uri

In both cases the card disappears from balanced marketplace but;

1 - Nothing shows up in logs or activity

2 - I get an error

"An AJAX HTTP error occurred HTTP Result Code: 500 Debugging information follows. Path:/ URI of the page StatusText: error Response Text:

I would really like to know if I should be able to see that a deletion has occurred via the marketplace and what response is sent by balanced.

Upvotes: 0

Views: 51

Answers (1)

rserna2010
rserna2010

Reputation: 449

The format of the uri does not matter, both are valid endpoints.

In terms of the HTTP status for a delete it will return a 204 NO CONTENT so the response will be empty.

Upvotes: 1

Related Questions