Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-payment: Required 'profile id' is missing #17

Closed
itsoft7 opened this issue Nov 11, 2020 · 4 comments
Closed

create-payment: Required 'profile id' is missing #17

itsoft7 opened this issue Nov 11, 2020 · 4 comments

Comments

@itsoft7
Copy link

itsoft7 commented Nov 11, 2020

Hello

$client->payments->create($p_arr);

Client error: resulted in a response: {"message":"Required 'profile id' is missing","code":2101}

https://revolut-engineering.github.io/api-docs/business-api/#api-reference-api-reference-payments-create-payment

There is no field 'profile id'. :(((

@itsoft7
Copy link
Author

itsoft7 commented Nov 11, 2020

curl -X POST https://b2b.revolut.com/api/1.0/pay -H "Authorization: Bearer oa_prod_*******" --data @- << EOF
{"schedule_for":"2020-11-09","amount":"339.07","currency":"EUR","account_id":"e98e2adf-bf44-40b6-a73d-2d0acf3836cb","receiver":{"counterparty_id":"2e963a86-59b5-45ea-816d-7619ad7406e2","account_id":"a88014cf-32cb-4210-b738-bcc304b7c742"},"reference":"SI1996062690-40002 TAXS Dohodnina (10.20)","request_id":"7e6899af6e6199b7153c83beb72fa1d9"}

EOF
{"message":"Required 'profile id' is missing","code":2101}

@sverraest
Copy link
Owner

@itsoft7 Are you sending a profile id? We're not doing any mapping so if you're not sending it and Revolut is expecting it you should add it to your payload.

@netwick
Copy link

netwick commented Jan 4, 2021

Hello sverraest,

First of all, happy new year !

I have the same probleme as itsoft7, and done many researches to find how to compose a payload with "profile id" field
But no success ... i don't see where to add this information (syntax, position ?)

Could you post a sample of payload please ?
I would be very helpful :-)

Many thanks by advance

Eric

@chrisob55
Copy link

In case anyone else has this issue, the fix for me was to remove the "schedule_for" field from the payload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants