transferwise / public-api-postman-collection

A Postman collection for exploring and testing the TransferWise public API
MIT License
44 stars 19 forks source link

API discrepancy in /v1/transfers and /v1/quotes #9

Open haphan opened 4 years ago

haphan commented 4 years ago

Hi, I spotted 2 discrepancies in the live API.

  1. /v1/tranfers does not return quote but instead returns quoteUuid which is undocumented according to the docs
"quote":null,
"quoteUuid":"e0c9368a-b13d-4c76-bfe6-xxxxxxxxxx"
  1. /v1/quotes/{quoteId} does not accept quoteUuid while does not provide any other endpoint to retrieve quote. When using quoteUuid instead of quote, client receives 400 Bad Request
> GET /v1/quotes/e0c9368a-b13d-4c76-bfe6-xxxxxxxxxx HTTP/1.1
Host: api.transferwise.com
User-Agent: transferwise-php-sdk/1.0 (7.3.11, Darwin) (+https://github.com/transferwise-php/sdk)
Authorization: Bearer xxxxx-xxxx-xxxx-xxxx-xxxxx

< HTTP/1.1 400 Bad Request
< Date: Sun, 15 Mar 2020 15:47:22 GMT
{"errors":[{"code":"bad.request","message":"'quoteId' should be a valid 'Long'
haphan commented 4 years ago

Tagging @JamesFerretti, @nmenego, @giljulio. Need your help here guys.

Do let me know if this is not the right place to report such issues. Thanks