Title: Rest Api Problem
Last modified: January 29, 2019

---

# Rest Api Problem

 *  Resolved [erkan41](https://wordpress.org/support/users/erkan41/)
 * (@erkan41)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/rest-api-problem/)
 * Hi,
    I’m getting the following error when loading category, brand and image.
 * {
    “code”: “rest_invalid_param”, “message”: “Invalid parameter: categories”, “
   data”: { “status”: 400, “params”: { “categories”: “categories[0] not object type.”}}}

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/rest-api-problem/?output_format=md) [1](https://wordpress.org/support/topic/rest-api-problem/?output_format=md)
2

 *  Thread Starter [erkan41](https://wordpress.org/support/users/erkan41/)
 * (@erkan41)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem/page/2/#post-11183010)
 * Hi,
    When I log in as admin, it brings all orders. But when I login as a vendor,
   it does not bring orders.
 * incoming postman result;
    []
 * GET /wp-json/dokan/v1/orders/ HTTP/1.1
    Host: localhost Authorization: Basic 
   aW5mb0BtdXppa3JleW9udS5jb206MTk4NzE5OAc= cache-control: no-cache Postman-Token:
   828a0664-431f-400c-b5b2-72be6a5b846a
 *  Thread Starter [erkan41](https://wordpress.org/support/users/erkan41/)
 * (@erkan41)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem/page/2/#post-11199976)
 * Hello [@ediamin](https://wordpress.org/support/users/ediamin/)
 * you said you will be added to the new version?
 * dokan rest api document does not have a method to add bank account information
   how can I do it? I would like to post the name surname and iban number.
 *  [Edi Amin](https://wordpress.org/support/users/ediamin/)
 * (@ediamin)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem/page/2/#post-11200020)
 * Hi [@erkan41](https://wordpress.org/support/users/erkan41/) you can use the `/
   dokan/v1/stores/{store_id}` to add your bank account. Example request data object,
 *     ```
         "payment": {
           "bank": {
             "ac_name": "Account name",
             "ac_number": "12121",
             "bank_name": "Bank Name",
             "bank_addr": "Bank Address",
             "routing_number": "123456789",
             "iban": "128938298",
             "swift": "FDKJV"
           },
       ```
   
 *  Thread Starter [erkan41](https://wordpress.org/support/users/erkan41/)
 * (@erkan41)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem/page/2/#post-11200378)
 * Hello [@ediamin](https://wordpress.org/support/users/ediamin/)
 * When we try with postman only brings bank information. do I request the necessary
   information to add, edit or delete a bank account? when I try to edit the bank
   account with postman post method, it deletes the attached account.
 *  Thread Starter [erkan41](https://wordpress.org/support/users/erkan41/)
 * (@erkan41)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem/page/2/#post-11201446)
 * Hi [@ediamin](https://wordpress.org/support/users/ediamin/)
    Waiting for your
   reply as soon as possible please.
 *  [Mohammed Saimon](https://wordpress.org/support/users/saimonh/)
 * (@saimonh)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem/page/2/#post-11204048)
 * [@erkan41](https://wordpress.org/support/users/erkan41/) Hello, thanks for noticing
   the bug. Right now you can just update the existing payment info of a vendor.
   If there is no payment method saved for the vendor, you can’t add any new payment
   info. This is a bug and we have already fixed it, which will be avaible in the
   next relase.
 * You can check the PR [https://github.com/weDevsOfficial/dokan/pull/561](https://github.com/weDevsOfficial/dokan/pull/561)
   for refereance. Thanks
 *  Thread Starter [erkan41](https://wordpress.org/support/users/erkan41/)
 * (@erkan41)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem/page/2/#post-11204486)
 * Hi [@saimonh](https://wordpress.org/support/users/saimonh/)
    I would ask for 
   sample postman usage codes. Can you share a sample screenshot for adding a bank
   account to a reseller?

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/rest-api-problem/?output_format=md) [1](https://wordpress.org/support/topic/rest-api-problem/?output_format=md)
2

The topic ‘Rest Api Problem’ is closed to new replies.

 * ![](https://ps.w.org/dokan-lite/assets/icon-256x256.gif?rev=3239229)
 * [Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy](https://wordpress.org/plugins/dokan-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dokan-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dokan-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/dokan-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dokan-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dokan-lite/reviews/)

 * 22 replies
 * 3 participants
 * Last reply from: [erkan41](https://wordpress.org/support/users/erkan41/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem/page/2/#post-11204486)
 * Status: resolved