• Resolved erkan41

    (@erkan41)


    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)
  • Thread Starter erkan41

    (@erkan41)

    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

    (@erkan41)

    Hello @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.

    Hi @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

    (@erkan41)

    Hello @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

    (@erkan41)

    Hi @ediamin
    Waiting for your reply as soon as possible please.

    @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 for refereance. Thanks

    Thread Starter erkan41

    (@erkan41)

    Hi @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)
  • The topic ‘Rest Api Problem’ is closed to new replies.