Set enabled status

Request

Method: POST
Route: api/giftcard/set-status
Example: api/giftcard/set-status
Input Value
id 11
enabled false
Request Headers
host: localhost:49527
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjQ5NTI3IiwiaWF0IjoxNjUyNzc1OTUxLCJuYmYiOjE2NTI3NzU5NTEsImp0aSI6IjRKMEw4SUdPbkxMVW1kTmEiLCJzdWIiOiIyMyIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.9XgnzZlxTTa2sDNURpJcH_rN85Rd7itSP3DiP88ym-w
content-length: 25
content-type: application/json

Response

200 JSON
Response Headers
cache-control: no-cache, private
date: Tue, 17 May 2022 08:25:51 GMT
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
{
    "data": {
        "message": "Gift card archived."
    }
}

Time: 0.27

insert into `users` (`updated_at`, `created_at`) values (?, ?)
Bindings
0: 2022-05-17 08:25:51
1: 2022-05-17 08:25:51

Time: 0.26

insert into `login_tokens` (`user_id`, `token`, `medium_type`, `medium_handle`, `expires_at`, `section`, `consumed_at`, `callback_url`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings
0: 23
1: Eqc8Oenb6t
2: email
3: [email protected]
4: 2022-05-17 08:40:51
5: 4UyJiyyA4KAnk2lb
6:
7: http://www.boyle.org/est-molestias-officiis-quia-dolorem-cumque-laboriosam-eum
8: 2022-05-17 08:25:51
9: 2022-05-17 08:25:51

Time: 0.36

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
0: 23

Time: 0.32

select * from `users` where (`phone_verified_at` is null or `email_verified_at` is null) and `id` = ? limit 1
Bindings
0: 23

Time: 0.27

update `users` set `email_verified_at` = ?, `email` = ?, `users`.`updated_at` = ? where `id` = ?
Bindings
0: 2022-05-17 08:25:51
1: [email protected]
2: 2022-05-17 08:25:51
3: 23

Time: 0.25

update `login_tokens` set `consumed_at` = ?, `login_tokens`.`updated_at` = ? where `id` = ?
Bindings
0: 2022-05-17 08:25:51
1: 2022-05-17 08:25:51
2: 37

Time: 0.23

insert into `brands` (`name`, `updated_at`, `created_at`) values (?, ?, ?)
Bindings
0: Starbucks
1: 2022-05-17 08:25:51
2: 2022-05-17 08:25:51

Time: 0.25

update `brands` set `corner_logo` = ?, `brands`.`updated_at` = ? where `id` = ?
Bindings
0: https://via.placeholder.com/640x480.png/00cc33?text=sit
1: 2022-05-17 08:25:51
2: 4

Time: 0.23

insert into `organizations` (`name`, `updated_at`, `created_at`) values (?, ?, ?)
Bindings
0: Centro Amnios
1: 2022-05-17 08:25:51
2: 2022-05-17 08:25:51

Time: 0.27

update `organizations` set `corner_logo` = ?, `organizations`.`updated_at` = ? where `id` = ?
Bindings
0: https://via.placeholder.com/640x480.png/0077ee?text=enim
1: 2022-05-17 08:25:51
2: 3

Time: 0.39

insert into `projects` (`name`, `deadline`, `intro`, `description`, `brand_id`, `organization_id`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?, ?, ?)
Bindings
0: Costruzione di infrastrutture
1: 2022-06-04 16:00:41
2: Molestiae perspiciatis nesciunt quis est veniam illum perferendis. Fuga voluptatum et eaque nostrum quam fugit. Delectus nam dolorum quis ut voluptatum.
3: Expedita cumque aut harum repellendus repudiandae incidunt. Corrupti asperiores omnis porro temporibus sit velit omnis dolore. Ea sequi harum dolor reiciendis illo aut corrupti inventore.
4: 4
5: 3
6: 2022-05-17 08:25:51
7: 2022-05-17 08:25:51

Time: 0.46

select `slug`, `projects`.`id` from `projects` where (`slug` = ? or `slug` LIKE ?)
Bindings
0: costruzione-di-infrastrutture-3
1: costruzione-di-infrastrutture-3-%

Time: 0.43

update `projects` set `name` = ?, `deadline` = ?, `intro` = ?, `description` = ?, `brand_id` = ?, `organization_id` = ?, `created_at` = ?, `id` = ?, `slug` = ?, `projects`.`updated_at` = ? where `id` = ?
Bindings
0: Costruzione di infrastrutture
1: 2022-06-04 16:00:41
2: Molestiae perspiciatis nesciunt quis est veniam illum perferendis. Fuga voluptatum et eaque nostrum quam fugit. Delectus nam dolorum quis ut voluptatum.
3: Expedita cumque aut harum repellendus repudiandae incidunt. Corrupti asperiores omnis porro temporibus sit velit omnis dolore. Ea sequi harum dolor reiciendis illo aut corrupti inventore.
4: 4
5: 3
6: 2022-05-17 08:25:51
7: 3
8: costruzione-di-infrastrutture-3
9: 2022-05-17 08:25:51
10: 3

Time: 0.49

update `projects` set `background_image` = ?, `giftcard_logo` = ?, `link_text` = ?, `link_href` = ?, `location_address` = ?, `location_title` = ?, `location_description` = ?, `location_email` = ?, `location_link_href` = ?, `location_link_text` = ?, `location_latitude` = ?, `location_longitude` = ?, `start_at` = ?, `projects`.`updated_at` = ? where `id` = ?
Bindings
0: https://via.placeholder.com/640x480.png/0011bb?text=qui
1: https://via.placeholder.com/640x480.png/00dd55?text=culpa
2: nisi quae et
3: http://glover.biz/
4: 175 Favian Avenue Apt. 984 South Brianneport, TN 57835
5: qui omnis dolor
6: Et odio debitis quod ut soluta excepturi est odit.
7: [email protected]
8: http://www.nikolaus.net/
9: doloremque quo corporis
10: -19.656544
11: -17.201829
12: 2022-05-19 18:52:40
13: 2022-05-17 08:25:51
14: 3

Time: 0.24

insert into `cards` (`project_id`, `serial`, `denomination`, `status`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?)
Bindings
0: 3
1: ZAQZzs2eN4
2: 4700
3: available
4: 2022-05-17 08:25:51
5: 2022-05-17 08:25:51

Time: 0.26

update `cards` set `gradient_color_1` = ?, `gradient_color_2` = ?, `expires_at` = ?, `info` = ?, `terms` = ?, `cards`.`updated_at` = ? where `id` = ?
Bindings
0: #6c4a77
1: #f0b453
2: 2023-03-31 23:36:31
3: []
4: Assumenda in.
Dolores doloribus enim et debitis qui sed sed.
Odit autem nisi itaque illum.
Dolore dolores et.
Et totam earum.
Impedit unde voluptate iste.
5: 2022-05-17 08:25:51
6: 11

Time: 0.28

update `cards` set `status` = ?, `user_id` = ?, `checkout_session` = ?, `reserved_at` = ?, `payment_intent` = ?, `checkout_status` = ?, `cards`.`updated_at` = ? where `id` = ?
Bindings
0: reserved
1: 23
2: 4Vr7JlAI1ZXhOYyq
3: 2022-05-17 08:25:51
4: LZHwcJT3PcbkV1Kw
5: created
6: 2022-05-17 08:25:51
7: 11

Time: 0.25

update `cards` set `status` = ?, `checkout_status` = ?, `cards`.`updated_at` = ? where `id` = ?
Bindings
0: owned
1: completed
2: 2022-05-17 08:25:51
3: 11

Time: 0.33

select * from `cards` where `user_id` is not null and `status` = ? and `checkout_session` is not null and `payment_intent` is not null and `checkout_status` = ? and `id` = ? limit 1
Bindings
0: archived
1: completed
2: 11

Time: 0.35

select * from `cards` where `user_id` is not null and `status` = ? and `checkout_session` is not null and `payment_intent` is not null and `checkout_status` = ? and `id` = ? limit 1
Bindings
0: owned
1: completed
2: 11

Time: 0.25

update `cards` set `status` = ?, `cards`.`updated_at` = ? where `id` = ?
Bindings
0: archived
1: 2022-05-17 08:25:51
2: 11

Request

Method: POST
Route: api/giftcard/set-status
Example: api/giftcard/set-status
Input Value
id 11
enabled false
Request Headers
host: localhost:49527
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjQ5NTI3IiwiaWF0IjoxNjUyNzc1OTUxLCJuYmYiOjE2NTI3NzU5NTEsImp0aSI6IjRKMEw4SUdPbkxMVW1kTmEiLCJzdWIiOiIyMyIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.9XgnzZlxTTa2sDNURpJcH_rN85Rd7itSP3DiP88ym-w
content-length: 25
content-type: application/json