{
  "opencollection": "1.0.0",
  "info": {
    "name": "Wish Marketplace V3 Brands Payments API",
    "version": "3.0.65"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://merchant.wish.com/v3/oauth/authorize",
      "accessTokenUrl": "https://merchant.wish.com/api/v3/oauth/access_token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Payments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Batch download invoices",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://merchant.wish.com/api/v3/payments/invoices/bulk_get",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The limit on the number of orders that will be returned."
              },
              {
                "name": "payment_released_at_min",
                "value": "2020-01-01T07:00:00.000Z",
                "type": "query",
                "description": "(Optional)Specify the beginning of the time window to view desired payments. Payments released before this time will not show."
              },
              {
                "name": "payment_released_at_max",
                "value": "2020-01-01T07:00:00.000Z",
                "type": "query",
                "description": "(Optional)Specify the end of the time window to view desired payments. Payments released after this time will not show."
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query",
                "description": "(Optional)Choose what field to order the payments, the order is descending by default. Current supported fields are:\n* payment_released_at: The time when the payment was released.\n"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://merchant.wish.com/v3/oauth/authorize",
              "accessTokenUrl": "https://merchant.wish.com/api/v3/oauth/access_token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Batch payment invoice download"
        },
        {
          "info": {
            "name": "Get batch invoice download job status",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://merchant.wish.com/api/v3/payments/invoices/bulk_get/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the batch invoice download job to query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://merchant.wish.com/v3/oauth/authorize",
              "accessTokenUrl": "https://merchant.wish.com/api/v3/oauth/access_token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get batch invoice download job status"
        },
        {
          "info": {
            "name": "Get merchant early payment info.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://merchant.wish.com/api/v3/payments/early_payment",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://merchant.wish.com/v3/oauth/authorize",
              "accessTokenUrl": "https://merchant.wish.com/api/v3/oauth/access_token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get info about early payment."
        }
      ]
    }
  ],
  "bundled": true
}