WPGetAPI, Debug Mode - Plugin Version 2.2.3

Below you will find debug info for the current API call. To turn this off, set debug to false in your shortcode or template tag.
Connecting to API's can be tricky - if you require help, please see the Documentation.

Full URL

The full URL that is being called.

https://www.xp-card.com/api/create-order?product_id&quantity&alt&api_key=71f4c727-03aa-4b3a-9b3e-5de19a0d1252
Data Output

The resulting output that has been returned from the API.

{
    "message": "\u064a\u0631\u062c\u0649 \u0625\u062d\u062a\u064a\u0627\u0631 \u0627\u0644\u0645\u0646\u062a\u062c",
    "errors": {
        "product_id": [
            "\u064a\u0631\u062c\u0649 \u0625\u062d\u062a\u064a\u0627\u0631 \u0627\u0644\u0645\u0646\u062a\u062c"
        ]
    }
}
Query String

The query string parameters (if any) that you have set within the endpoint settings.

Array
(
    [product_id] => (action:line_items:0:id)
    [quantity] => (action:line_items:0:qty)
    [alt] => (action:line_items:0:meta_data:inid_phone_name)
    [api_key] => 71f4c727-03aa-4b3a-9b3e-5de19a0d1252
)
Headers

The header parameters (if any) that you have set within the endpoint settings.

Array
(
    [Accept] => Application/Json
)
Body

The body parameters (if any) that you have set within the endpoint settings.

Array
(
)
Final Request Arguments

The final request arguments sent in the API request. Includes headers and body arguments.

Array
(
    [timeout] => 10
    [sslverify] => 1
    [redirection] => 5
    [blocking] => 1
    [cookies] => Array
        (
        )

    [headers] => Array
        (
            [Accept] => Application/Json
        )

)
Arguments

The arguments set within your shortcode or template tag.

Array
(
    [debug] => true
    [endpoint_variables] => Array
        (
        )

    [query_variables] => Array
        (
        )

    [body_variables] => Array
        (
        )

    [format] => 
    [html_tag] => div
    [html_labels] => false
    [html_url] => 
    [html_to_link] => 
    [img_key] => 
    [img_prepend] => 
    [img_link] => 
    [shortcode] => 1
    [on] => 
    [button_text] => 
    [hide_button] => 
    [button_spinner] => 
    [button_id] => 
    [ajax_output] => .wpgetapi_ajax_output
    [chain] => 
    [chain_delay] => 0
)
Response

The full response from the API request.

Array
(
    [headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
        (
            [data:protected] => Array
                (
                    [date] => Mon, 04 Mar 2024 23:33:55 GMT
                    [content-type] => application/json
                    [cache-control] => private, must-revalidate
                    [x-ratelimit-limit] => 60
                    [x-ratelimit-remaining] => 59
                    [pragma] => no-cache
                    [expires] => -1
                    [access-control-allow-origin] => *
                    [cf-cache-status] => DYNAMIC
                    [report-to] => {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=gfLwRXXGaGj02AAUd4mw4lFneTxWAvvLhxTPTvfYwR05Xe11szFWpKWNPYbKd8ndq4VzT3HK69wCMGZKhBTA1zZ5dM5jgSEmmELHWJSDGmleMQMFy8U9%2F2zU3qGYMkbBt9GItTo9eZvR"}],"group":"cf-nel","max_age":604800}
                    [nel] => {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
                    [server] => cloudflare
                    [cf-ray] => 85f5ac8aba26f09f-CDG
                )

        )

    [body] => {"message":"\u064a\u0631\u062c\u0649 \u0625\u062d\u062a\u064a\u0627\u0631 \u0627\u0644\u0645\u0646\u062a\u062c","errors":{"product_id":["\u064a\u0631\u062c\u0649 \u0625\u062d\u062a\u064a\u0627\u0631 \u0627\u0644\u0645\u0646\u062a\u062c"]}}
    [response] => Array
        (
            [code] => 422
            [message] => Unprocessable Entity
        )

    [cookies] => Array
        (
        )

    [filename] => 
    [http_response] => WP_HTTP_Requests_Response Object
        (
            [response:protected] => WpOrg\Requests\Response Object
                (
                    [body] => {"message":"\u064a\u0631\u062c\u0649 \u0625\u062d\u062a\u064a\u0627\u0631 \u0627\u0644\u0645\u0646\u062a\u062c","errors":{"product_id":["\u064a\u0631\u062c\u0649 \u0625\u062d\u062a\u064a\u0627\u0631 \u0627\u0644\u0645\u0646\u062a\u062c"]}}
                    [raw] => HTTP/1.1 422 Unprocessable Entity
Date: Mon, 04 Mar 2024 23:33:55 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Cache-Control: private, must-revalidate
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
pragma: no-cache
expires: -1
access-control-allow-origin: *
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=gfLwRXXGaGj02AAUd4mw4lFneTxWAvvLhxTPTvfYwR05Xe11szFWpKWNPYbKd8ndq4VzT3HK69wCMGZKhBTA1zZ5dM5jgSEmmELHWJSDGmleMQMFy8U9%2F2zU3qGYMkbBt9GItTo9eZvR"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 85f5ac8aba26f09f-CDG

{"message":"\u064a\u0631\u062c\u0649 \u0625\u062d\u062a\u064a\u0627\u0631 \u0627\u0644\u0645\u0646\u062a\u062c","errors":{"product_id":["\u064a\u0631\u062c\u0649 \u0625\u062d\u062a\u064a\u0627\u0631 \u0627\u0644\u0645\u0646\u062a\u062c"]}}
                    [headers] => WpOrg\Requests\Response\Headers Object
                        (
                            [data:protected] => Array
                                (
                                    [date] => Array
                                        (
                                            [0] => Mon, 04 Mar 2024 23:33:55 GMT
                                        )

                                    [content-type] => Array
                                        (
                                            [0] => application/json
                                        )

                                    [cache-control] => Array
                                        (
                                            [0] => private, must-revalidate
                                        )

                                    [x-ratelimit-limit] => Array
                                        (
                                            [0] => 60
                                        )

                                    [x-ratelimit-remaining] => Array
                                        (
                                            [0] => 59
                                        )

                                    [pragma] => Array
                                        (
                                            [0] => no-cache
                                        )

                                    [expires] => Array
                                        (
                                            [0] => -1
                                        )

                                    [access-control-allow-origin] => Array
                                        (
                                            [0] => *
                                        )

                                    [cf-cache-status] => Array
                                        (
                                            [0] => DYNAMIC
                                        )

                                    [report-to] => Array
                                        (
                                            [0] => {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=gfLwRXXGaGj02AAUd4mw4lFneTxWAvvLhxTPTvfYwR05Xe11szFWpKWNPYbKd8ndq4VzT3HK69wCMGZKhBTA1zZ5dM5jgSEmmELHWJSDGmleMQMFy8U9%2F2zU3qGYMkbBt9GItTo9eZvR"}],"group":"cf-nel","max_age":604800}
                                        )

                                    [nel] => Array
                                        (
                                            [0] => {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
                                        )

                                    [server] => Array
                                        (
                                            [0] => cloudflare
                                        )

                                    [cf-ray] => Array
                                        (
                                            [0] => 85f5ac8aba26f09f-CDG
                                        )

                                )

                        )

                    [status_code] => 422
                    [protocol_version] => 1.1
                    [success] => 
                    [redirects] => 1
                    [url] => https://xp-card.com/api/create-order?product_id&quantity&alt&api_key=71f4c727-03aa-4b3a-9b3e-5de19a0d1252
                    [history] => Array
                        (
                            [0] => WpOrg\Requests\Response Object
                                (
                                    [body] => 
301 Moved Permanently

301 Moved Permanently


nginx
[raw] => HTTP/1.1 301 Moved Permanently Date: Mon, 04 Mar 2024 23:33:54 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: close location: https://xp-card.com/api/create-order?product_id&quantity&alt&api_key=71f4c727-03aa-4b3a-9b3e-5de19a0d1252 x-frame-options: SAMEORIGIN x-content-type-options: nosniff x-xss-protection: 1; mode=block x-permitted-cross-domain-policies: master-only referrer-policy: same-origin CF-Cache-Status: DYNAMIC Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=us0cMmrCKCzdTzWDLb8i06QR4m4nTmw9xhTz3Tr98YVDWjitOsPFv1sMleQYW67dNUwQSgmyKqA2Y4a8GJuEPrttAri95YOIknoxFqbb47wfSZ%2BRggvQb0KkVxyC%2BYQhW51Ie%2BBrOMwrnL1kag%3D%3D"}],"group":"cf-nel","max_age":604800} NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800} Server: cloudflare CF-RAY: 85f5ac89bc9dd6a2-CDG 301 Moved Permanently

301 Moved Permanently


nginx
[headers] => WpOrg\Requests\Response\Headers Object ( [data:protected] => Array ( [date] => Array ( [0] => Mon, 04 Mar 2024 23:33:54 GMT ) [content-type] => Array ( [0] => text/html ) [location] => Array ( [0] => https://xp-card.com/api/create-order?product_id&quantity&alt&api_key=71f4c727-03aa-4b3a-9b3e-5de19a0d1252 ) [x-frame-options] => Array ( [0] => SAMEORIGIN ) [x-content-type-options] => Array ( [0] => nosniff ) [x-xss-protection] => Array ( [0] => 1; mode=block ) [x-permitted-cross-domain-policies] => Array ( [0] => master-only ) [referrer-policy] => Array ( [0] => same-origin ) [cf-cache-status] => Array ( [0] => DYNAMIC ) [report-to] => Array ( [0] => {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=us0cMmrCKCzdTzWDLb8i06QR4m4nTmw9xhTz3Tr98YVDWjitOsPFv1sMleQYW67dNUwQSgmyKqA2Y4a8GJuEPrttAri95YOIknoxFqbb47wfSZ%2BRggvQb0KkVxyC%2BYQhW51Ie%2BBrOMwrnL1kag%3D%3D"}],"group":"cf-nel","max_age":604800} ) [nel] => Array ( [0] => {"success_fraction":0,"report_to":"cf-nel","max_age":604800} ) [server] => Array ( [0] => cloudflare ) [cf-ray] => Array ( [0] => 85f5ac89bc9dd6a2-CDG ) ) ) [status_code] => 301 [protocol_version] => 1.1 [success] => [redirects] => 0 [url] => https://www.xp-card.com/api/create-order?product_id&quantity&alt&api_key=71f4c727-03aa-4b3a-9b3e-5de19a0d1252 [history] => Array ( ) [cookies] => WpOrg\Requests\Cookie\Jar Object ( [cookies:protected] => Array ( ) ) ) ) [cookies] => WpOrg\Requests\Cookie\Jar Object ( [cookies:protected] => Array ( ) ) ) [filename:protected] => [data] => [headers] => [status] => ) )